View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
19656Bug reportsRemoteControlpublic2026-09-12 01:47
ReporterTVZ Assigned Toc_schmitz  
PrioritynoneSeveritytweak 
Status resolvedResolutionfixed 
Product Version6.5.x 
Summary19656: export_responses request blocked
Description

When using the export_responses method I get the following:

Array
(
[status] => No permission
)

Other remote control methods I'm using work fine.

The same method worked fine with older versions of LimeSurvey

Steps To Reproduce

Steps to reproduce

My code initiates the remote control session.

Using the session key, the request is sent to the API.

$sessionData = $this->initSession();

$response = $sessionData['client']->export_responses($sessionData['key'], $surveyId,'csv','','all','full', 'long');

$sessionData['client']->release_session_key($sessionData['key']);

echo "

"; print_r($response);die;

Expected result

The expected return is the base64 encoded data.

Actual result

The response is

Array
(
[status] => No permission
)

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)6.5.16+
I will donate to the project if issue is resolvedYes
Story point estimate
BrowserChrome
Database type & version10.6.18-MariaDB
Server OS (if known)
Webserver software & version (if known)Apache
PHP VersionPHP 8.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

TVZ

TVZ

2024-07-16 10:09

reporter   ~80625

Sorry, this was my mistake. I passed an incorrect, non-existant survey id to the function.

So the fault is that the wrong message was returned.

Based on my mistake the correct message that should have beeen returned by the API request is 'status' => 'No Data, survey table does not exist.' application/heelpers/remotecontrol/remotecontrol_handle.php line 3550.

tibor.pacalat

tibor.pacalat

2024-07-17 20:57

administrator   ~80654

Ok, so we just need to add the correct text when this type of error occurs.

TVZ

TVZ

2024-08-04 12:35

reporter   ~80732

Thanks!

c_schmitz

c_schmitz

2026-09-12 01:47

administrator   ~85689

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

Related Changesets

LimeSurvey: master 4f61b316

2026-09-12 01:47

c_schmitz


Details Diff
Fixed issue 19656: export_responses shows wrong message if survey does not exist Affected Issues
19656
mod - application/helpers/remotecontrol/remotecontrol_handle.php Diff File

Issue History

Date Modified Username Field Change
2024-07-15 22:57 TVZ New Issue
2024-07-16 10:00 TVZ Issue Monitored: TVZ
2024-07-16 10:00 TVZ Bug heat 0 => 2
2024-07-16 10:01 TVZ Issue End Monitor: TVZ
2024-07-16 10:01 TVZ Bug heat 2 => 0
2024-07-16 10:09 TVZ Note Added: 80625
2024-07-16 10:09 TVZ Bug heat 0 => 2
2024-07-17 20:56 tibor.pacalat Severity block => tweak
2024-07-17 20:57 tibor.pacalat Note Added: 80654
2024-07-17 20:57 tibor.pacalat Bug heat 2 => 4
2024-08-04 12:35 TVZ Note Added: 80732
2026-09-12 01:47 c_schmitz Changeset attached => LimeSurvey master 4f61b316
2026-09-12 01:47 c_schmitz Note Added: 85689
2026-09-12 01:47 c_schmitz Assigned To => c_schmitz
2026-09-12 01:47 c_schmitz Status new => resolved
2026-09-12 01:47 c_schmitz Resolution open => fixed
2026-09-12 01:47 c_schmitz Bug heat 4 => 6