fix: trim trailing slashes from the base-path#1396
Conversation
8ae60b4 to
7125f3d
Compare
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
7125f3d to
ae0a232
Compare
jakobmoellerdev
left a comment
There was a problem hiding this comment.
This fix is part of normalisation of a URl and I believe that needs to be part of the runtime URL as @frewilhelm pointed out. approving nevertheless but this needs follow-up imho
|
I'm not using the outcome of that. But I'll explain a bit better later. |
|
Okay, so, the problem with just doing this in So what I want is to use the original format. How it was defined originally! Especially if path WAS set, because then the baseURL must remain as it was! So if it was That said, of course we can try and refactor this entire thing and then construct the original URL back into how the baseurl was defined, but I feel like that's a hassle. :D And that is why. :) |
What this PR does / why we need it
Avoids things like this:
ending up like this:
Because, basically oras has
parts := strings.SplitN(artifact, "/", 2)in it's parser which resulted in the repository section being cut asocm//...for the full reference ofmcp-blueprints.common.repositories.cloud.sap/ocm//component-descriptors/bob.poc.sap.com/root.Which issue(s) this PR fixes