View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
08658 | Bug reports | RemoteControl | public | 2014-02-04 12:45 | 2014-02-04 13:32 |
Reporter | masciugo | Assigned To | c_schmitz | ||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.05+ | ||||
Fixed in Version | 2.05+ | ||||
Summary | 08658: get_participant_properties RPC Routine returns incorrect response | ||||
Description | Running attached script (test.php) on limesurvey setup (JSON-RPC enabled) produced a wrong response: Array | ||||
Additional Information | doing the same on the current demo (version 2.00) returns the expected result: Array | ||||
Tags | No tags attached. | ||||
Attached Files | test.php (1,567 bytes)
<?php require_once './jsonrpcphp/includes/jsonRPCClient.php'; // define( 'LS_BASEURL', 'http://172.21.156.16/limesurvey/index.php'); // adjust this one to your actual LimeSurvey URL define( 'LS_BASEURL', 'http://demo.limesurvey.org/index.php'); // adjust this one to your actual LimeSurvey URL // define( 'LS_USER', 'rails_user' ); define( 'LS_USER', 'admin' ); // define( 'LS_PASSWORD', 'limoncello' ); define( 'LS_PASSWORD', 'test' ); // the survey to process // $survey_id=545515; $survey_id=367177; // instanciate a new client // $myJSONRPCClient = new jsonRPCClient( LS_BASEURL.'/admin/remotecontrol' ); $myJSONRPCClient = new jsonRPCClient( LS_BASEURL.'?r=admin/remotecontrol' ); // receive session key $sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD ); $aTokenProperties = ['tid','token','completed','participant_id','language','usesleft','firstname','blacklisted','validfrom','lastname','sent','validuntil','email','remindersent','mpid','emailstatus','remindercount']; // print_r($aTokenProperties, null ); // $result = $myJSONRPCClient->get_participant_properties( $sessionKey, 545515, 1, $aTokenProperties ); // $result = $myJSONRPCClient->get_participant_properties( $sessionKey, 545515, 5, ['tid','token'] ); $result = $myJSONRPCClient->get_participant_properties( $sessionKey, 157162, 1, $aTokenProperties ); // $result = $myJSONRPCClient->get_survey_properties( $sessionKey, 367177, ['sid','language'] ); print_r($result, null ); // release the session key $myJSONRPCClient->release_session_key( $sessionKey ); ?> | ||||
Bug heat | 2 | ||||
Complete LimeSurvey version number (& build) | 140131 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | chrome Version 32.0.1700.102 | ||||
Database type & version | mysql 5.1.71 | ||||
Server OS (if known) | Linux 2.6.32-431.el6.x86_64 | ||||
Webserver software & version (if known) | httpd-2.2.15-29.el6.centos.x86_64 | ||||
PHP Version | 5.3.3 | ||||
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=13839 |
|
Version 2.05+ Build 140204 released |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2014-02-04 12:45 | masciugo | New Issue | |
2014-02-04 12:45 | masciugo | File Added: test.php | |
2014-02-04 12:58 | c_schmitz | Assigned To | => c_schmitz |
2014-02-04 12:58 | c_schmitz | Status | new => assigned |
2014-02-04 12:59 | c_schmitz | Status | assigned => resolved |
2014-02-04 12:59 | c_schmitz | Fixed in Version | => 2.05+ |
2014-02-04 12:59 | c_schmitz | Resolution | open => fixed |
2014-02-04 12:59 | c_schmitz | Changeset attached | => LimeSurvey master 95ef6d40 |
2014-02-04 12:59 | c_schmitz | Note Added: 28485 | |
2014-02-04 13:32 | c_schmitz | Note Added: 28489 | |
2014-02-04 13:32 | c_schmitz | Status | resolved => closed |