We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
registry.ParseReference
Below code is expected to panic but can parse the invalid reference /oras
/oras
package main import ( "fmt" _ "crypto/sha256" "oras.land/oras-go/v2/registry" ) func main() { rawRef := "/oras" ref, err := registry.ParseReference(rawRef) if err != nil { panic(err) } fmt.Println("Registry:", ref.Registry) fmt.Println("Repository:", ref.Repository) }
Version: oras.land/oras-go/v2 v2.4.0
The root cause is url.ParseRequestURI allows empty domain name, ORAS-go should enforce the non-empty checking.
The text was updated successfully, but these errors were encountered:
fix: check empty registry name (#729)
d3ff5dc
Fix #698 Signed-off-by: Shiwei Zhang <[email protected]>
Successfully merging a pull request may close this issue.
Below code is expected to panic but can parse the invalid reference
/oras
Version: oras.land/oras-go/v2 v2.4.0
The root cause is url.ParseRequestURI allows empty domain name, ORAS-go should enforce the non-empty checking.
The text was updated successfully, but these errors were encountered: