View Issue Details

This bug affects 1 person(s).
IDProjectCategoryView StatusLast Update
18203Bug reportsRemoteControlpublic2022-06-24 18:46
Reporterchimp358 Assigned To 
Status confirmedResolutionopen 
Product Version5.3.x 
Summary18203: RemoteControl method update_response error response is inconsistent with other methods

When an error is encountered in processing an RPC request, most other methods return an array of the form array('status' => '<Some Error Message>'). However, the update_response method instead returns strings.

For consistency reasons, it would be good if this method returned a similar array. It seems like all that would need to be done is update the responses, for example change

return 'Error: No survey response table';


return array('status' => 'Error: No survey response table');
Steps To Reproduce

Steps to reproduce

Request the RPC method update_response with a non-existing token.

Expected result

  "status": "No matching Response"

Actual result

"Error: No matching Response."
TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)5.3.19+220607
I will donate to the project if issue is resolvedNo
Database type & versionNA
Server OS (if known)NA
Webserver software & version (if known)NA
PHP VersionNA

Users monitoring this issue

User List There are no users monitoring this issue.




2022-06-21 10:27

developer   ~70422

Good idea, but broke API



2022-06-21 17:24

reporter   ~70456

@DenisChenu Yeah, It would be a breaking change. Is there a next or develop branch where breaking changes can be merged?



2022-06-21 17:54

developer   ~70457

develop allow API update, unsure for API broker …



2022-06-24 17:52

manager   ~70523

Hmm I would say this is still a bug.
Needs to be corrected. Agree, probably on DEV, not on a minor release.



2022-06-24 18:31

reporter   ~70526

@gabrieljenik thanks for chiming in! If that's the case then I'm happy to submit a PR :)



2022-06-24 18:46

manager   ~70527

Sure, let's do it on DEV. It will need to be corrected at some point

Issue History

Date Modified Username Field Change
2022-06-21 09:34 chimp358 New Issue
2022-06-21 10:27 DenisChenu Note Added: 70422
2022-06-21 10:27 DenisChenu Bug heat 0 => 2
2022-06-21 17:24 chimp358 Note Added: 70456
2022-06-21 17:24 chimp358 Bug heat 2 => 4
2022-06-21 17:54 DenisChenu Note Added: 70457
2022-06-24 17:52 gabrieljenik Note Added: 70523
2022-06-24 17:52 gabrieljenik Bug heat 4 => 6
2022-06-24 17:53 gabrieljenik Status new => confirmed
2022-06-24 18:31 chimp358 Note Added: 70526
2022-06-24 18:46 gabrieljenik Note Added: 70527