Skip to content

URL schema when written in wrong case fails (not gracefully) #1047

Description

@silverhook

Describe the bug
When adding a Docker source, the URL schema seems to be case sensitive, and if it is not exactly as docker://, it fails, but does not explain why.

System configuration

  • Which version of ScanCode.io are you running? v32.7.0
  • Are you running the app using Docker? yes
  • On which OS? Linux
  • What inputs are you using? docker
  • Which pipeline are you running? docker

To Reproduce
Steps to reproduce the behavior:

  1. start a new scan
  2. add a Docker resource and do a case typo by writing e.g. Docker://postgres:12.17-alpine3.19
  3. fill in everything else correctly and set the pipeline to docker
  4. start the scan
  5. see error

Expected behavior
Either:
a) not have the schema part of the URL case sensitive, and just finish the scan; or
b) return an error, where it explains the issue was the case

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions