Skip to content

Comments

Remove trimming of trailing slash to ensure adding v2 does not remove the subpath#1799

Open
chrischu wants to merge 1 commit intoOctopusDeploy:mainfrom
SignPath:FixSubPathSupportForOciRegistries
Open

Remove trimming of trailing slash to ensure adding v2 does not remove the subpath#1799
chrischu wants to merge 1 commit intoOctopusDeploy:mainfrom
SignPath:FixSubPathSupportForOciRegistries

Conversation

@chrischu
Copy link

@chrischu chrischu commented Feb 23, 2026

Should fix #9895.

When calling new Uri(new Uri("https://domain/sub"), "v2") returns https://domain/v2, while new Uri(new Uri("https://domain/sub/"), "v2") returns https://domain/sub/v2

@chrischu
Copy link
Author

Unfortunately there does not seem to be tests for the OciPackageDownloader, therefore I could not adjust tests :(

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.

OCI repositories with subpaths cannot be used in package references

1 participant