View Issue Details

This bug affects 2 person(s).
 16
IDProjectCategoryView StatusLast Update
17973Bug reportsStatisticspublic2022-04-04 10:09
Reporterbutbi2022 Assigned Togabrieljenik  
PriorityhighSeveritycrash 
Status closedResolutionfixed 
Product Version5.2.x 
Summary17973: Error 404 for statisctics_user/action
Description

In LimeSurvey version 5.3.5 if I click on the link or type the address of public statistics it will display error 404: Unable to resolve the request "statistics_user/action".
In survey presentation setting both Public statistics and Show graphs in public statistics are ON.

I just upgrade the system from 3.28.x to 5.5.x using Comfort Update. It still works on the 3.28.x.

Steps To Reproduce

Steps to reproduce

On survey Lime Survey 5.3.x with any survey, both Public statistics and Show graphs in public statistics are ON.
Click or type the address for public statistics (path to survey/statisctics_user/surveyID)

Expected result

(Write here what you expected to happen)

Actual result

Error 404: Unable to resolve the request "statistics_user/action".

TagsNo tags attached.
Attached Files
CHttpException.png (293,833 bytes)
Bug heat16
Complete LimeSurvey version number (& build)5.3.4 / 5.3.5
I will donate to the project if issue is resolvedNo
Browser
Database type & version10.3.34-MariaDB-log-cll-lve - MariaDB Server
Server OS (if known)Linux
Webserver software & version (if known)
PHP VersionPHP Version 7.4.28

Users monitoring this issue

There are no users monitoring this issue.

Activities

galads

galads

2022-03-18 07:24

reporter   ~68721

Can you please provide more precise instructions on how to reproduce? Preferably in a step-by-step manner, like 1) Go to question x; 2) Click button y; 3) Expected z but saw v. Thank you very much.

butbi2022

butbi2022

2022-03-18 07:51

reporter   ~68723

Last edited: 2022-03-18 08:39

Other user also said this is reproducable in the SaaS Version 5.3.4.

bilias

bilias

2022-03-24 12:43

reporter   ~68793

Also confirming this on 5.3.5+220314 . This is the public statistics interface.

reproduce as per: https://manual.limesurvey.org/Statistics#Public_statistics

When survey is submitted, a link is presented to user
View the statistics for this survey -> /index.php/statistics_user/197941?language=en

404: Not Found
Unable to resolve the request "statistics_user/action"

Could be nice if the link was also listed somewhere on the admin interface of the survey.

gabrieljenik

gabrieljenik

2022-03-25 20:34

manager   ~68803

Controller changed from Statistics_userController to StatisticsUserController.
The runtime generates the url as "statistics_user/action/surveyid/123456".

That used to work before because to look for the controller class, a ucfirst() is done.

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

bilias

bilias

2022-03-29 12:25

reporter   ~68815

with patch from https://github.com/LimeSurvey/LimeSurvey/pull/2310
now it works on URLs:

/index.php/StatisticsUser/action/surveyid/197941 or
/index.php/statistics_user/197941

gabrieljenik

gabrieljenik

2022-03-29 14:50

manager   ~68816

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

LimeBot

LimeBot

2022-04-04 10:09

administrator   ~68863

Fixed in Release 5.3.8+220404

Related Changesets

LimeSurvey: master 9fd953f9

2022-03-29 14:50:20

gabrieljenik


Committer: GitHub Details Diff
Fixed issue 17973: Error 404 for statisctics_user/action (#2310)

* Fixed issue 17973: Error 404 for statisctics_user/action

* Fixed issue 17973: Error 404 for statisctics_user/action

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
Affected Issues
17973
mod - application/config/routes.php Diff File
mod - application/helpers/SurveyRuntimeHelper.php Diff File

Issue History

Date Modified Username Field Change
2022-03-18 04:08 butbi2022 New Issue
2022-03-18 04:08 butbi2022 File Added: CHttpException.png
2022-03-18 07:24 galads Note Added: 68721
2022-03-18 07:24 galads Bug heat 0 => 2
2022-03-18 07:24 galads Assigned To => galads
2022-03-18 07:24 galads Status new => feedback
2022-03-18 07:43 butbi2022 Bug heat 2 => 4
2022-03-18 07:43 butbi2022 Status feedback => assigned
2022-03-18 07:51 butbi2022 Note Added: 68723
2022-03-18 08:39 galads Assigned To galads => gabrieljenik
2022-03-18 08:39 galads Priority none => high
2022-03-18 08:39 galads Status assigned => confirmed
2022-03-18 08:39 galads Zoho Project Synchronization => |Yes|
2022-03-24 12:43 bilias Note Added: 68793
2022-03-24 12:43 bilias Bug heat 4 => 6
2022-03-24 12:46 guest Bug heat 6 => 12
2022-03-25 20:34 gabrieljenik Note Added: 68803
2022-03-25 20:34 gabrieljenik Bug heat 12 => 14
2022-03-29 12:25 bilias Note Added: 68815
2022-03-29 14:50 gabrieljenik Changeset attached => LimeSurvey master 9fd953f9
2022-03-29 14:50 gabrieljenik Note Added: 68816
2022-03-29 14:50 gabrieljenik Resolution open => fixed
2022-04-04 10:09 LimeBot Zoho Project Synchronization Yes => |Yes|
2022-04-04 10:09 LimeBot Note Added: 68863
2022-04-04 10:09 LimeBot Status confirmed => closed
2022-04-04 10:09 LimeBot Bug heat 14 => 16