Suggested command to pull container from repo with uppercase characters does not convert to lowercase (OD-1972)
Released
HoLLy opened 3 weeks ago

I have a nested project that uses uppercase naming (MyProject/MySubProject). If I publish a container image for this and try to download it, it suggests a command with an uppercase name.

My buildspec publishes the image like so:

  - !BuildImageStep
    name: Build docker image
    output: !RegistryOutput
      tags: '@server@/myproject/mysubproject:latest' # notice the lowercase characters, uppercase is rejected
    builtInRegistryAccessTokenSecret: access-token
    platforms: linux/amd64,linux/arm64
    condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL

This will successfully publish the image and will show the following example command on the package page (at git.mydomain.tld/MyProject/~packages/123):

docker pull git.mydomain.tld/MyProject/mysubproject:latest # notice how the subproject is correctly lowercase, but the project contains uppercase characters

If I try to pull this project now, I get the following errors:

$ docker pull git.mydomain.tld/MyProject/mysubproject:latest
invalid reference format: repository name must be lowercase

$ docker pull git.mydomain.tld/myproject/web:latest # using lowecase
latest: Pulling from myproject/mysubproject
...
Robin Shen changed fields 3 weeks ago
Name Previous Value Current Value
Type
Improvement
Bug
Affected Versions
empty
<=10.9.2
OneDev changed state to 'Closed' 3 weeks ago
Previous Value Current Value
Open
Closed
OneDev commented 3 weeks ago

State changed as code fixing the issue is committed (20723fb4)

OneDev changed state to 'Released' 3 weeks ago
Previous Value Current Value
Closed
Released
OneDev commented 3 weeks ago

State changed as build OD-5228 (10.9.3) is successful

issue 1 of 1
Type
Bug
Priority
Minor
Assignee
Affected Versions
<=10.9.2
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-1972
Please wait...
Page is in error, reload to recover