-
Notifications
You must be signed in to change notification settings - Fork 69
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
Skip urldecode in indexSearch and getKeys [JIRA: CLIENTS-90] #65
Comments
Are these the urldecode's that you are speaking of and is this still a problem? https://github.com/basho/riak-php-client/blob/1.4.x/src/Basho/Riak/Object.php#L907 |
[~cmancini], I'm guessing this can be closed. Please confirm. Thanks. _[posted via JIRA by Derek Somogyi]_ |
No response to confirm that this is still an issue. |
Oops, i missed this, sorry! I am still on riak 1.3.2 so i cannot confirm how this behaves in 1.4.x or
|
Hey @Addeventure , glad you posted back. Is this still a problem for you with the 1.4.x (master branch - I say 1.4 because of the features supported, but it works with 1.3.x) of the client? If so, I can reopen and investigate. |
Yes, the lines causing the issue are: To reproduce, create a new object using a key like 'hello%3Aworld'. Retrieve the key using indexSearch or getKeys. The returned data will contain the key 'hello:world' I am not sure why the urldecode is there in the first place though. Perhaps related to around problems with the deprecated "http_url_encoding" config option? I am just guessing... |
Alright, after we get the rewritten client released, I will investigate this for you. |
@Addeventure Can you checkout my PR and give it a 👍 if it looks good? |
With urlencoding enabled in Riak HTTP API, 2i and list keys result should not be urldecoded in PHP as it then gets decoded twice:
This incorrectly produces "hello:world" instead of "hello%3Aworld". Simply removing urldecode (or making it an optional config value?) solves the issue.
The text was updated successfully, but these errors were encountered: