View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
09372 | Bug reports | RemoteControl | public | 2014-11-25 14:30 | 2014-12-10 09:21 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.05+ | ||||
Fixed in Version | 2.05+ | ||||
Summary | 09372: get responses in use xml-rpc and export_responses method | ||||
Description | When i try to get response with export_responses method in xml-rpc i have an error xmlrpx malformed response. | ||||
Steps To Reproduce | Where i use export_responses method in xml-rpc communication. | ||||
Tags | No tags attached. | ||||
Attached Files | exportresponses.txt (558 bytes)
$limesurvey_server = $this->container->getParameter('limesurvey_server'); $webServiceUrl = $this->container->getParameter('webServiceUrl'); $limesurvey_login = $this->container->getParameter('limesurvey_login'); $limesurvey_password = $this->container->getParameter('limesurvey_password'); $client = new Client($webServiceUrl); $sessionKey = $client->call('get_session_key',array($limesurvey_login,$limesurvey_password)); $limesurvey_responses = $client->call('export_responses',array($sessionKey,$surveyId,'csv','fr','all','code','log')); | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | Version 2.05+ Build 141113 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | firefox | ||||
Database type & version | mysql-server-5.5 | ||||
Server OS (if known) | debian wheezy | ||||
Webserver software & version (if known) | apache2 2.2.22 | ||||
PHP Version | 5.4.35 | ||||
Please attach a small example script, thank you. |
|
Hi.
Thanks a lot for your response. |
|
The function does not advertise to give back base64 but a simple string, which happens to be base64, but that should not be the problem. I see that in the XML_RPC response the type is not advertised. "If no type is indicated, the type is string." I assume that your XML-RPC client is not behaving properly. |
|
Yes, a simple string but encoded in base64 like an encoded file. Thanks a lot. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=14665 |
|
Implemented a small fix to indicate the type explicitly as string. |
|
Fix committed to 2.06 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=14666 |
|
I have to force it to string, as it would break existing integrations, otherwise. |
|
Thanks a lot. It works! Best regards. |
|
For The XML-RPC specs I will suggest this specs to the bundle devlopper. Thanks again. |
|
Hi! I am using the JSON-RPC interface and this change broke my code. base64_decode fails on this. It is not documented to do so. So why change this? Can you explain this to me? Thanks. PS:Otherwise Limesurvey is great. |
|
alibert, it is a valid response, as I wrote before the XML-RPC specs say "If no type is indicated, the type is string." So I just added something that can or cannot be there according to specs. If your XML-RPC client is not properly implemented then yes, stuff will break. But it is not to blame on LimeSurvey. |
|
Hi alibert and C schmitz. |
|
Version 2.05+ Build 141210 released |
|
LimeSurvey: master 733d98f9 2014-11-26 17:15 Details Diff |
Fixed issue 09372: RemoteControl export_responses breaks with some XML-RPC clients |
Affected Issues 09372 |
|
mod - application/libraries/BigData.php | Diff File | ||
LimeSurvey: 2.06 d3804be6 2014-11-26 17:15 Details Diff |
Fixed issue 09372: RemoteControl export_responses breaks with some XML-RPC clients |
Affected Issues 09372 |
|
mod - application/libraries/BigData.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-11-25 14:30 |
|
New Issue | |
2014-11-26 10:41 | c_schmitz | Note Added: 31099 | |
2014-11-26 10:41 | c_schmitz | Assigned To | => c_schmitz |
2014-11-26 10:41 | c_schmitz | Status | new => feedback |
2014-11-26 11:19 |
|
Note Added: 31102 | |
2014-11-26 11:19 |
|
Status | feedback => assigned |
2014-11-26 12:48 |
|
Issue Monitored: user36100 | |
2014-11-26 12:48 |
|
File Added: exportresponses.txt | |
2014-11-26 16:46 | c_schmitz | Note Added: 31103 | |
2014-11-26 17:02 | c_schmitz | Note Edited: 31103 | |
2014-11-26 17:03 | c_schmitz | Note Edited: 31103 | |
2014-11-26 17:03 | c_schmitz | Status | assigned => feedback |
2014-11-26 17:06 |
|
Note Added: 31104 | |
2014-11-26 17:06 |
|
Status | feedback => assigned |
2014-11-26 17:15 | c_schmitz | Changeset attached | => LimeSurvey master 733d98f9 |
2014-11-26 17:15 | c_schmitz | Note Added: 31105 | |
2014-11-26 17:15 | c_schmitz | Resolution | open => fixed |
2014-11-26 17:16 | c_schmitz | Note Added: 31106 | |
2014-11-26 17:16 | c_schmitz | Status | assigned => resolved |
2014-11-26 17:16 | c_schmitz | Fixed in Version | => 2.05+ |
2014-11-26 17:17 | c_schmitz | Changeset attached | => LimeSurvey 2.06 d3804be6 |
2014-11-26 17:17 | c_schmitz | Note Added: 31107 | |
2014-11-26 17:18 | c_schmitz | Note Added: 31108 | |
2014-11-26 17:50 |
|
Note Added: 31109 | |
2014-11-26 18:00 |
|
Note Added: 31110 | |
2014-12-02 08:43 | alibert | Note Added: 31136 | |
2014-12-02 11:29 | c_schmitz | Note Added: 31137 | |
2014-12-02 11:30 | c_schmitz | Note Edited: 31137 | |
2014-12-02 11:45 |
|
Note Added: 31140 | |
2014-12-10 09:21 | c_schmitz | Note Added: 31227 | |
2014-12-10 09:21 | c_schmitz | Status | resolved => closed |