Skip to content

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

Merged
EmilienM merged 1 commit intogophercloud:v1from
shiftstack:tempurl_v1
Oct 26, 2023
Merged

Allow objects.CreateTempURL with names containing /v1/#2826
EmilienM merged 1 commit intogophercloud:v1from
shiftstack:tempurl_v1

Conversation

@pierreprinetti
Copy link
Copy Markdown
Member

@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
Copy Markdown

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.

@github-actions github-actions bot added semver:patch No API change and removed semver:patch No API change labels Oct 26, 2023
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
@EmilienM EmilienM deleted the tempurl_v1 branch October 26, 2023 13:27
@pierreprinetti pierreprinetti added the v1 This PR targets v1 label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch No API change v1 This PR targets v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants