View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 07841 | Bug reports | RemoteControl | public | 2013-05-15 20:06 | 2013-05-22 10:50 |
| Reporter | sveinp | Assigned To | trougakoss | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | not fixable | ||
| Product Version | 2.00+ | ||||
| Summary | 07841: list_surveys does not list surveys without startdate and/or expires | ||||
| Description | SSIA. | ||||
| Steps To Reproduce | Run list_surveys Remote Control call with active surveys without any values in startdate and expires. | ||||
| Additional Information | Line 546 in controllers/admin/remotecontrol.php causes the error: I have not been digging into what really fails, just observed that if the array don't contain undefined values everything works fine. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 130514 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | NA | ||||
| Database type & version | postgres 9.2 | ||||
| Server OS (if known) | Ubunto 10.04 | ||||
| Webserver software & version (if known) | Apache/2.2.14 | ||||
| PHP Version | 5.3.2 | ||||
|
To be a bit more precise: list_surveys does not list any surveys if any of the surveys miss any of the dates. |
|
|
I just tried it with mysql db and it produced a result like this I will try to reproduce the problem with a postgres DB and i will inform you accordingly. |
|
|
It looks like the same problem goes for all RemoteControl calls, if there is NULL values in the data to be returned, the call itself returns NULL. Forgot to mention that I am using the XML RPC version, I have not tested the json api. |
|
|
I tried to get a list of surveys using the following configuration I tried to get a list of surveys where I used xmlrpc interface BUT I could not replicate the problem Maybe there is something wrong with your installation. |
|
|
Blush I really should have investigated more before sending this bug report. I implemented my client in Perl using RPC::XML::Client (RPC::XML was once upon the time a reference implementation for XML RPC). As a reference implementation, it follows the standard strict unless told otherwise. For undefined values, LimeSurvey sends a <nil/> tag. This is not part of the XML RPC standard, but defined in an extension to the standard. RPC::XML accepts this only if $RPC::XML::ALLOW_NIL is set to a true value. When I received an undefined value as the response, I should not have assumed that LimeSurvey did not send a response, but investigated the traffic. My apologies for wasting your time! But, it would be nice with a note in the manual stating that the nil extension is used. Svein |
|
|
No worries Svein. As for the documentation, I will probably make a note regarding the nulls just to be safe. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-05-15 20:06 | sveinp | New Issue | |
| 2013-05-15 20:42 | sveinp | Note Added: 25271 | |
| 2013-05-16 07:01 | c_schmitz | Assigned To | => trougakoss |
| 2013-05-16 07:01 | c_schmitz | Status | new => assigned |
| 2013-05-16 15:38 | trougakoss | Note Added: 25276 | |
| 2013-05-16 15:39 | sveinp | Note Added: 25277 | |
| 2013-05-20 14:02 | trougakoss | Note Added: 25309 | |
| 2013-05-20 20:57 | sveinp | Note Added: 25319 | |
| 2013-05-21 09:22 | trougakoss | Note Added: 25322 | |
| 2013-05-22 10:50 | trougakoss | Status | assigned => closed |
| 2013-05-22 10:50 | trougakoss | Resolution | open => not fixable |