Suggested command to pull container from repo with uppercase characters does not convert to lowercase (OD-1972)
HoLLy opened 2 years 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 2 years ago
    Name Previous Value Current Value
    Type
    Improvement
    Bug
    Affected Versions
    empty
    <=10.9.2
  • OneDev changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 2 years ago

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

  • OneDev changed state to 'Released' 2 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 2 years ago

    State changed as build OD-5228 is successful

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