View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
20135Bug reportsRemoteControlpublic2025-06-06 11:54
Reportertakase Assigned Totibor.pacalat  
PrioritynoneSeveritytrivial 
Status closedResolutionno change required 
Summary20135: The get_fieldmap RPC method uses parameter names ($sessionKey, $surveyId) which do not follow Hungarian notation.
Description

The get_fieldmap RPC method uses parameter names ($sessionKey, $surveyId) that are inconsistent with other RPC methods like get_language_properties, which use Hungarian notation (e.g., $sSessionKey, $iSurveyID).

Unifying the parameter naming convention to follow Hungarian notation improves developer experience, maintains consistency, and reduces confusion when using the API.

Steps To Reproduce

Steps to reproduce

  1. Open index.php/admin/remotecontrol via LimeSurvey's admin panel.
  2. Look at the definition of the get_fieldmap method.

Expected result

Parameter names should follow the same Hungarian notation convention as other RPC methods.
For example:

$sessionKey → $sSessionKey
$surveyId → $iSurveyID

Actual result

The get_fieldmap method currently uses inconsistent parameter names:

@param string $sessionKey Auth credentials
@param int $surveyId ID of the Survey
@param string $language (optional) language of the survey to use (default from Survey)
TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)6.12.4
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmariadb 11.4
Server OS (if known)
Webserver software & version (if known)
PHP Version8.3.20

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2025-06-06 09:25

developer   ~82839

Use jsonrpc 1 : parameters in order ;)

takase

takase

2025-06-06 09:41

reporter   ~82842

Got it! Can't mess with the public API :)
Thanks a lot, feel free to close this ticket.

DenisChenu

DenisChenu

2025-06-06 09:59

developer   ~82843

Last edited: 2025-06-06 09:59

https://www.limesurvey.org/manual/RemoteControl_2_API#How_to_use_LSRC2

LSRC2 fully complies to the XML-RPC specification and JSON-RPC version 1 specifications.

Can close ?

takase

takase

2025-06-06 10:05

reporter   ~82844

Yes, I'll use JSON-RPC version 1. Please close this ticket. Thanks for your help.

Issue History

Date Modified Username Field Change
2025-06-06 07:46 takase New Issue
2025-06-06 09:25 DenisChenu Note Added: 82839
2025-06-06 09:25 DenisChenu Bug heat 0 => 2
2025-06-06 09:41 takase Note Added: 82842
2025-06-06 09:41 takase Bug heat 2 => 4
2025-06-06 09:59 DenisChenu Note Added: 82843
2025-06-06 09:59 DenisChenu Assigned To => tibor.pacalat
2025-06-06 09:59 DenisChenu Status new => feedback
2025-06-06 09:59 DenisChenu Note Edited: 82843
2025-06-06 10:05 takase Note Added: 82844
2025-06-06 10:05 takase Status feedback => assigned
2025-06-06 11:54 tibor.pacalat Status assigned => closed
2025-06-06 11:54 tibor.pacalat Resolution open => no change required