View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
18180Bug reportsRemoteControlpublic2022-07-05 15:18
ReporterH1441H Assigned To 
PrioritynoneSeveritycrash 
Status ready for testingResolutionopen 
Product Version5.3.x 
Summary18180: Calling set_participant_properties with an invalid token id throws an internal server error
Description

https://api.limesurvey.org/classes/remotecontrol_handle.html#method_set_participant_properties

When you call set_participant_properties with an invalid token id passed as an integer 9999999 to $aTokenQueryProperties, the api throws a 500 Internal Server Error.

When you call set_participant_properties with an invalid token id passed as an array (tid=>9999999) to $aTokenQueryProperties, the api returns the expected status message 'Error: No results were found based on your attributes.'

This behaviour is inconsistent.

Steps To Reproduce

Steps to reproduce

This fails on any survey.
Call the RemoteControl procedure 'set_participant_properties'.
Pass an invalid token id (eg 99999999) as an integer to $aTokenQueryProperties.

Expected result

The RPC should respond with the status message Error: Invalid tokenid.

Actual result

The RPC throws a 500 Internal Server Error.

TagsNo tags attached.
Bug heat10
Complete LimeSurvey version number (& build)5.3.18+220530
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & version5.5.5-10.2.40-MariaDB-10.2.40+maria~stretch
Server OS (if known)Linux
Webserver software & version (if known)Apache
PHP Version 7.3.33

Relationships

has duplicate 18179 closedgabrieljenik Feature requests Calling set_participant_properties with an invalid token id throws an internal server error 

Users monitoring this issue

User List H1441H

Issue History

Date Modified Username Field Change
2022-06-07 11:19 H1441H New Issue
2022-06-08 23:46 gabrieljenik Status new => acknowledged
2022-06-09 18:22 gabrieljenik Relationship added has duplicate 18179
2022-06-09 18:22 gabrieljenik Issue Monitored: H1441H
2022-06-09 18:22 gabrieljenik Bug heat 0 => 8
2022-06-09 18:23 gabrieljenik Assigned To => gabrieljenik
2022-06-09 18:23 gabrieljenik Status acknowledged => assigned
2022-06-13 18:59 gabrieljenik Summary 18179: Calling set_participant_properties with an invalid token id throws an internal server error => Calling set_participant_properties with an invalid token id throws an internal server error
2022-06-13 18:59 gabrieljenik Status assigned => ready for code review
2022-06-13 18:59 gabrieljenik Note Added: 70349
2022-06-13 18:59 gabrieljenik Bug heat 8 => 10
2022-07-05 15:18 gabrieljenik Assigned To gabrieljenik =>
2022-07-05 15:18 gabrieljenik Status ready for code review => ready for testing