View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
12486Bug reportsOtherpublic2026-11-20 10:39
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Summary12486: Better HTML error management and choice
Description

Actual situation :

  1. we use some 404 for bad survey id, but not all (some are redirected)
  2. we use a very little 401 (no access without authentifaction)
  3. we didn't really use 403 (no access with YOUR credential (or you send bad parameters))
  4. All error use default Yii system (in master)
Steps To Reproduce

I think it can be great to

  1. 401 : Unauthorized access and show 'admin part' if it's a admin part
  2. 401 : Unauthorized access / public part : bad token for example
  3. 403: https://en.wikipedia.org/wiki/HTTP_403 admin part : you are authenticated but you don't have this right
  4. 403 : bad parameters in URL (see https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/Survey_Common_Action.php#L150) at public part too (somene want to hack)
  5. Others ? Maybe use https://github.com/LimeSurvey/LimeSurvey/commit/03b406b790d684aaebe4d5e1bf3dabfd105a6e26#diff-ecb8aa59f6d0a7c38ea58ec03d0f5e48R66 for a lot of error too ? But difference between admin / not admin
TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-11-20 10:39

administrator   ~87795

Most of what was asked for here has been done over the years: errors are now shown on a proper error page, and missing permissions or unknown surveys give the matching error code in most places. Closing this as largely implemented. If a specific page still behaves wrongly, please open a new report for it.

Issue History

Date Modified Username Field Change
2017-06-22 15:36 DenisChenu New Issue
2026-11-19 22:50 c_schmitz Status new => acknowledged
2026-11-20 10:39 c_schmitz Status acknowledged => closed
2026-11-20 10:39 c_schmitz Resolution open => fixed
2026-11-20 10:39 c_schmitz Product Version 2.5x =>
2026-11-20 10:39 c_schmitz Note Added: 87795
2026-11-20 10:39 c_schmitz Bug heat 0 => 2