basho / riak-php-client

PHP clients for Riak
Apache License 2.0
160 stars 69 forks source link

problem of Store XML file into riak [JIRA: CLIENTS-816] #119

Closed txl1290 closed 8 years ago

txl1290 commented 8 years ago

Dear Mancini, Recently, I use basho/riak-php-client between php program and riak server. And I want store a xml file into riak, I set content-type to text/xml,but it doesn't work. I check the source code, and find "rawurlencode($data)" in riak-php-client/src/Riak/Command/Object.php line 50. This causes xml label no longer has any effect. I wish to konw the necessity of the code. I delete urlencode and store xml file successfully, but I'm afraid about influencing the correctness of the project.

Best Wishes!

Xiaolong Tang

christophermancini commented 8 years ago

Hi @txl1290, thanks for submitting the issue, I will try to trouble shoot it. Do you have a snippet of code so that I can reproduce the issue?

txl1290 commented 8 years ago

Hi @christophermancini , I found the reason. It's my mistake. I use storeObject to store xml. But I use the xml through riak http request. This doesn't contain the urldecode handle. I use fetchObject and now it's ok.

sorry to waste your time. Best Wishes! Xiaolong Tang