Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace "+" in object queries with "%2B" #260

Merged
merged 2 commits into from
Nov 7, 2014
Merged

Conversation

dkolbly
Copy link
Contributor

@dkolbly dkolbly commented Nov 6, 2014

This fixes issue #259 in which objects with "+" in the
object key cannot be retrieved.

This fixes issue AdRoll#259 in which objects with "+" in the
object key cannot be retrieved.
@alimoeeny
Copy link
Contributor

@dkolbly would you please add a test that specifically tests for this change?

It turns out that req.URL is already processed, so it would
come back as "has+plus" both with and without the fix, but req.RequestURI
is not %-expanded so works to verify this fix.
@dkolbly
Copy link
Contributor Author

dkolbly commented Nov 6, 2014

@alimoeeny done. I had to check RequestURI instead of URL, since URL is already munged at that point and so did not distinguish between the correct and incorrect code. This test fails w/o my patch and succeeds with it.

alimoeeny added a commit that referenced this pull request Nov 7, 2014
Replace "+" in object queries with "%2B"
@alimoeeny alimoeeny merged commit 72b2a7f into AdRoll:master Nov 7, 2014
@alimoeeny
Copy link
Contributor

Thank you very much @dkolbly

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants