-
Notifications
You must be signed in to change notification settings - Fork 384
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
Valid oci reference names disallowed #294
Comments
Nice catch |
In containers/skopeo#369 mtrmac said:
Looking at the code in
If that doesn't work out for some reason, I think "::" would make sense as a separator since the ref-name syntax doesn't allow consecutive separator characters, and most single characters that aren't allowed in the ref-name are problematical in some way (|, $, etc.). |
org.opencontainers.image.ref.name values are allowed to be much more complex than the code allowed for. Change the validation to match the spec. Since ref-names can contain a :, split from the path on the first :, not the last :. (Path containing a : were already considered invalid.) fixes containers#294
org.opencontainers.image.ref.name values are allowed to be much more complex than the code allowed for. Change the validation to match the spec. Since ref-names can contain a :, split from the path on the first :, not the last :. (Path containing a : were already considered invalid.) fixes containers#294 Signed-off-by: Owen W. Taylor <[email protected]>
org.opencontainers.image.ref.name values are allowed to be much more complex than the code allowed for. Change the validation to match the spec. Since ref-names can contain a :, split from the path on the first :, not the last :. (Path containing a : were already considered invalid.) fixes containers#294 Signed-off-by: Owen W. Taylor <[email protected]>
org.opencontainers.image.ref.name values are allowed to be much more complex than the code allowed for. Change the validation to match the spec. Since ref-names can contain a :, split from the path on the first :, not the last :. (Path containing a : were already considered invalid.) fixes containers#294 Signed-off-by: Owen W. Taylor <[email protected]>
org.opencontainers.image.ref.name values are allowed to be much more complex than the code allowed for. Change the validation to match the spec. Since ref-names can contain a :, split from the path on the first :, not the last :. (Path containing a : were already considered invalid.) fixes containers#294 Signed-off-by: Owen W. Taylor <[email protected]>
This was fixed in #318. |
@mtrmac If it is fixed, close the issue. |
Right, I meant to do that and somehow didn’t. |
The rules for a valid
org.opencontainers.image.ref.name
at:Are quite different from the checks in the code, which seem to be (in oci_transport.go)
For example,
app/org.gnome.eog/x86_64/master
is valid by the former set of rules and not by the later. (See containers/skopeo#369)The text was updated successfully, but these errors were encountered: