View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
19656Bug reportsRemoteControlpublic2024-08-04 12:35
ReporterTVZ Assigned To 
PrioritynoneSeveritytweak 
Status newResolutionopen 
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 "<pre>"; 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 heat4
Complete LimeSurvey version number (& build)6.5.16+
I will donate to the project if issue is resolvedYes
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!

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