View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
18578Bug reportsRemoteControlpublic2023-01-30 13:47
Reporterginosupport Assigned Togabrieljenik  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version5.4.x 
Summary18578: Internal server error (HTTP 500) in RemoteControl get_participant_properties for removed participant
Description

There's a HTTP 500 internal server error when doing a RemoteControl get_participant_properties request for a participant that's been removed.

Note: this might be related to https://bugs.limesurvey.org/view.php?id=18180, but since that's about a different API call I wanted to report it separately just to be sure. If the fix for 18180 also fixes this problem, all the better.

Steps To Reproduce
  • Create some survey with non-anonymous responses
  • Create a participant for this survey, save the participant id and remove the participant (this step might not be strictly necessary, but that's how i did it)
  • Do a RemoteControl get_participant_properties request to get the properties of the now-removed participant:

{
method: "get_participant_properties",
params: {
"iSurveyID": "173585",
"iTokenID": "2",
"aTokenProperties": [
"tid",
"token",
"participant_id",
"firstname",
"lastname",
"validfrom",
"validuntil",
"completed",
"usesleft",
"blacklisted",
"sent",
"email",
"emailstatus",
"remindersent",
"language",
"mpid",
"attribute_1",
"attribute_2"
]
},
id: 1
}

  • The result is a HTTP 500. I expected some response indicating that the participant could not be found
TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)5.4.15
I will donate to the project if issue is resolvedNo
BrowserNone
Database type & versionPostgreSQL
Server OS (if known)RedHat Linux
Webserver software & version (if known)Apache
PHP Version7.4.x

Users monitoring this issue

There are no users monitoring this issue.

Activities

gabrieljenik

gabrieljenik

2023-01-04 14:59

manager   ~73359

https://github.com/LimeSurvey/LimeSurvey/pull/2827

guest

guest

2023-01-26 11:12

viewer   ~73574

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=34241

LimeBot

LimeBot

2023-01-30 13:47

administrator   ~73603

Fixed in Release 5.6.3+230130

Related Changesets

LimeSurvey: master c039bb71

2023-01-26 11:12:12

Gabriel Jenik


Committer: GitHub Details Diff
Fixed issue 18578: Internal server error (HTTP 500) in RemoteControl get_participant_properties for removed participant (#2827)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
Affected Issues
18578
mod - application/helpers/remotecontrol/remotecontrol_handle.php Diff File
add - tests/data/surveys/survey_archive_getParticipantPropertiesTest.lsa Diff File
add - tests/unit/helpers/remotecontrol/GetParticipantPropertiesTest.php Diff File

Issue History

Date Modified Username Field Change
2023-01-02 15:44 ginosupport New Issue
2023-01-03 15:28 gabrieljenik Assigned To => gabrieljenik
2023-01-03 15:28 gabrieljenik Status new => assigned
2023-01-04 14:59 gabrieljenik Status assigned => in code review
2023-01-04 14:59 gabrieljenik Note Added: 73359
2023-01-04 14:59 gabrieljenik Bug heat 0 => 2
2023-01-05 12:33 ollehar Priority none => normal
2023-01-26 11:12 Changeset attached => LimeSurvey master c039bb71
2023-01-26 11:12 guest Note Added: 73574
2023-01-26 11:12 guest Bug heat 2 => 4
2023-01-30 13:47 LimeBot Note Added: 73603
2023-01-30 13:47 LimeBot Status in code review => closed
2023-01-30 13:47 LimeBot Resolution open => fixed
2023-01-30 13:47 LimeBot Bug heat 4 => 6