Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repository name must be canonical when buildah is > 1.22.0 #3500

Closed
rcny opened this issue Sep 6, 2021 · 10 comments
Closed

repository name must be canonical when buildah is > 1.22.0 #3500

rcny opened this issue Sep 6, 2021 · 10 comments

Comments

@rcny
Copy link

rcny commented Sep 6, 2021

Description

buildah login docker.io/user errors with

parse reference from "docker.io/user": repository name must be canonical

after updating to 1.22.3 from 1.22.0. buildah login docker.io/user worked before, had to change to buildah login docker.io to make it work again.

Most possibly this behavior change was introduced here.

Steps to reproduce the issue:

  1. Install buildah 1.22.3
  2. echo "foobar" | buildah login --username "user" --password-stdin "docker.io/user" (use proper creds)

Describe the results you received:

parse reference from "docker.io/user": repository name must be canonical

Describe the results you expected:

Login Succeeded!

@vrothberg
Copy link
Member

Thanks for reaching out, @rcny! @saschagrunert PTAL

@saschagrunert
Copy link
Member

The issue is that docker.io/user will fail on ParseNamed() here:

if named.String() != s {
return nil, ErrNameNotCanonical
}

A valid input would be docker.io/library/user, which should work.

Working on a fix in containers/common#757

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Oct 7, 2021

@saschagrunert @mtrmac Where are we on this?

@saschagrunert
Copy link
Member

@saschagrunert @mtrmac Where are we on this?

Coming back to this one, I think containers/common#763 is the right appraoch in replacement to containers/common#757

@github-actions
Copy link

github-actions bot commented Nov 7, 2021

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Nov 8, 2021

I believe this is fixed now, closing. Reopen if I am mistaken.

@rhatdan rhatdan closed this as completed Nov 8, 2021
@vrothberg
Copy link
Member

It is not fixed, reopening. I really want this to work before we cut Podman 4.0.

@vrothberg vrothberg reopened this Nov 9, 2021
@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@vrothberg
Copy link
Member

This has been fixed in the meantime.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants