View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
13794 | Bug reports | RemoteControl | public | 2018-06-19 20:31 | 2018-06-27 15:29 |
Reporter | aaskoura | Assigned To | ollehar | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.10.x | ||||
Summary | 13794: RPC add_response reports error, still inserts a response record | ||||
Description | RPC Yet, it will create a record in response table | ||||
Steps To Reproduce | Using Postman {"method": "get_session_key", "params": [ "string_username","string_password" ], "id": 1}
| ||||
Additional Information | screenshot and .lss file attached | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 3.12.1+ 180616 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Postman (REST client) | ||||
Database type & version | MySQL 5 | ||||
Server OS (if known) | Ubuntu 14 TLS | ||||
Webserver software & version (if known) | Apache 2 | ||||
PHP Version | 7.0.30 | ||||
Hej Olle, this is the outstanding error report I mentioned at https://bugs.limesurvey.org/view.php?id=13738#c48116. Can you please look into this since it is causing quite some issues with our OfflineSurveys app? Thanks! |
|
I'll have a look now. |
|
What kind information would you like in the warning message? The result id? |
|
I can return array( |
|
If response was created : must return the id and only the id : see API https://api.limesurvey.org/classes/remotecontrol_handle.html#method_add_response Else : updating API : need a 4.X version. I always think it's best if all remote_control action was rewrited to ALWAYS return an array with status=>'(error|warning|result)' and the needed result in another var. Can be done in API update but not without … |
|
@DenisChenu I agree with your final solution, but not sure what to do until then. I think I will go with my suggestion above for now, with a "TODO" note... |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=27482 |
|
Version 3.12.3+180627 released |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-06-19 20:31 | aaskoura | New Issue | |
2018-06-19 20:31 | aaskoura | File Added: limesurvey_survey_481151.lss | |
2018-06-19 20:31 | aaskoura | File Added: Screen Shot 2018-06-19 at 20.15.10.png | |
2018-06-20 09:07 | Mazi | Assigned To | => ollehar |
2018-06-20 09:07 | Mazi | Status | new => assigned |
2018-06-20 09:09 | Mazi | Note Added: 48237 | |
2018-06-21 11:06 | ollehar | Note Added: 48255 | |
2018-06-21 11:11 | ollehar | Note Added: 48257 | |
2018-06-21 11:11 | ollehar | Note Added: 48258 | |
2018-06-21 12:14 | DenisChenu | Note Added: 48261 | |
2018-06-21 14:50 | ollehar | Note Added: 48262 | |
2018-06-21 14:53 | ollehar | Changeset attached | => LimeSurvey master 09b03e2a |
2018-06-21 14:53 | ollehar | Note Added: 48263 | |
2018-06-21 14:53 | ollehar | Resolution | open => fixed |
2018-06-21 15:00 | ollehar | Status | assigned => resolved |
2018-06-27 15:29 | c_schmitz | Note Added: 48337 | |
2018-06-27 15:29 | c_schmitz | Status | resolved => closed |