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

VMStorageOCI: percent-encode the colon in RemoteName's host #828

Merged
merged 2 commits into from
May 21, 2024

Conversation

edigaryev
Copy link
Collaborator

Resolves #827.

@edigaryev edigaryev requested a review from fkorotkov as a code owner May 17, 2024 10:32
@fkorotkov
Copy link
Contributor

Should we just ignore port for storing OCI images? Don't think anyone will ever have two registries on different ports. 🤔

@edigaryev
Copy link
Collaborator Author

Should we just ignore port for storing OCI images? Don't think anyone will ever have two registries on different ports. 🤔

IMO we should not assume anything about things that are security-related. It's hard to say exactly what registry configurations people could be using.

@fkorotkov
Copy link
Contributor

I just don't like String extensions that are used at specific location. This is an edge case for hosts and preferably this logic should be isolated. For example, I'll need time to understand why this line is changed and think if we covered all the places. There is a feeling this host specific logic should be better scoped.

@edigaryev
Copy link
Collaborator Author

I just don't like String extensions that are used at specific location.

Switched to an ordinary funcions in 0919606 and added a comment explaining this:

let parts = [foundURL.deletingLastPathComponent().relativePath, foundURL.lastPathComponent]

@fkorotkov fkorotkov merged commit 204002f into main May 21, 2024
6 checks passed
@fkorotkov fkorotkov deleted the percent-encode-colon branch May 21, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pulling an image from OCI registry with custom port fails to show up in Tart list
2 participants