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

Allow objects.CreateTempURL with names containing /v1/ #2826

Merged
merged 1 commit into from Oct 26, 2023

Conversation

pierreprinetti
Copy link
Contributor

@pierreprinetti pierreprinetti commented Oct 25, 2023

This PR backports a fix in CreateTempURL that was fixed in the main branch as a byproduct of #2821.

Before this patch, if an object's name or container name contained the string /v1/, it was not possible to create a TempURL for it. This was due to a bug in how the URL was split between the base part, and the object-path part.

With this patch, container names or object names containing /v1/ can have a TempURL created successfully.

Fixes #2827

@pierreprinetti pierreprinetti changed the title Add a failing test Allow objects.CreateTempURL with names containing /v1/ Oct 25, 2023
@github-actions github-actions bot added the semver:patch No API change label Oct 25, 2023
@coveralls
Copy link

coveralls commented Oct 25, 2023

Coverage Status

coverage: 77.883%. remained the same when pulling 3df6ee5 on shiftstack:tempurl_v1 into 5b77f04 on gophercloud:v1.

Before this patch, if an object's name or container name contained the
string `/v1/`, it was not possible to create a TempURL for it.
This was due to a bug in how the URL was split between the base part,
and the object-path part.

With this patch, container names or object names containing `/v1/` can
have a TempURL created successfully.
@github-actions github-actions bot added semver:patch No API change and removed semver:patch No API change labels Oct 26, 2023
@pierreprinetti pierreprinetti marked this pull request as ready for review October 26, 2023 08:14
@pierreprinetti pierreprinetti requested a review from a team October 26, 2023 08:14
@EmilienM EmilienM merged commit 5dd227b into gophercloud:v1 Oct 26, 2023
28 checks passed
@EmilienM EmilienM deleted the tempurl_v1 branch October 26, 2023 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch No API change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants