View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
19513Bug reportsRemoteControlpublic2024-04-07 21:12
Reporterindietyp Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version5.6.x 
Summary19513: RemoteControl 2 API fails if id is 0
Description

The RemoteControl 2 API returns an empty response (200 OK) on get_session_key (and any other RPC method) if the id is 0 or "0".

get_session_key is also not spec compliant because error cannot be null, if must not be present if no error is present.

Steps To Reproduce

Steps to reproduce

POST /index.php?r=admin%2Fremotecontrol HTTP/1.1
Content-Length: 102
Content-Type: application/json
User-Agent: HTTPie

{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "_checkEmailFormat",
  "params": ["..."]
}

Expected result

{
  "id": "0",
  "result": null,
  "error": null
}

Actual result

200 OK with an empty body.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build) Version 5.6.56+240227
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL
Server OS (if known)
Webserver software & version (if known)
PHP VersionPHP/7.4.14

Users monitoring this issue

indietyp

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-04-07 21:12 indietyp New Issue
2024-04-07 21:12 indietyp Issue Monitored: indietyp
2024-04-07 21:12 indietyp Bug heat 0 => 2