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

kraken: rgw: Use decoded URI when verifying TempURL #12986

Merged
merged 1 commit into from Apr 14, 2017

Conversation

Werkov
Copy link
Contributor

@Werkov Werkov commented Jan 18, 2017

@smithfarm
Copy link
Contributor

@Werkov I think this needs to be targeted to master. After it is merged to master it can be backported to kraken, etc.

@smithfarm smithfarm changed the title rgw: Use decoded URI when verifying TempURL [DNM] rgw: Use decoded URI when verifying TempURL Jan 20, 2017
@smithfarm
Copy link
Contributor

@Werkov After the master PR is merged, please re-do this as a cherry-pick using git cherry-pick -x from the master commit.

@smithfarm
Copy link
Contributor

@Werkov The master commit has been merged. Please go ahead as described in the previous comment.

Instead of calliing url_decode directly, we reuse s->decoded_uri that is
initialized in RGWREST::preprocess().

Fixes: http://tracker.ceph.com/issues/18590
Signed-off-by: Michal Koutný <mkoutny@suse.com>
(cherry picked from commit 4e1318f)
@Werkov Werkov force-pushed the rgw-fix-tempurl-url-encoding branch from 2a95399 to bfc058d Compare January 26, 2017 20:44
@smithfarm smithfarm changed the title [DNM] rgw: Use decoded URI when verifying TempURL rgw: Use decoded URI when verifying TempURL Jan 26, 2017
Copy link
Contributor

@rzarzynski rzarzynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@rzarzynski
Copy link
Contributor

@smithfarm: this PR looks like a Kraken backport. Should we change the title and update the Milestone appropriately?

@smithfarm smithfarm added this to the kraken milestone Apr 13, 2017
@smithfarm smithfarm changed the title rgw: Use decoded URI when verifying TempURL kraken: rgw: Use decoded URI when verifying TempURL Apr 13, 2017
@smithfarm
Copy link
Contributor

@rzarzynski Thanks; done!

@smithfarm
Copy link
Contributor

This PR passed an RGW suite at http://tracker.ceph.com/issues/19009#note-18

@smithfarm smithfarm merged commit 841216b into ceph:kraken Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants