View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
17664Bug reportsSurvey takingpublic2026-10-20 17:06
Reporterduvemyster Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version5.x 
Summary17664: Session expiration message is not presented to users on file-upload
Description

When a respondent's session expires with a page with a file-upload questions still in their browser, and they click the "upload file" link:

  • In Version 5.1.15+211011 there is no session expiration message visible (at least not in FF or Edge).
  • In Version 3.27.19+210928, with some effort scrolling right and left in the small window a "401: Unauthorized" message can be seen, which is at least followed by "We are sorry but your session has expired." (and "You must be logged in to access this page." though that adds a little confusion to those who keep reading as they don't think they logged in.)
Steps To Reproduce

Steps to reproduce

  1. Check session lifetime max (e.g., session.gc_maxlifetime) or set it short on a dev server.
  2. Open a survey to a group with a file-upload questions as a respondent, and leave the browser tab inactive longer than the session max.
  3. Click on "Upload files" after the session has expired.

Expected result

In the case of persistent tokens, it would help if the main browser window was simply automatically refreshed, as that would get them back up and running with a new session!
If that is not an option, a human-friendly communication to users that they need to refresh their main browser window would help.
(In 3.x the "We are sorry but your session has expired." is helpful if one scrolls around to see it, though not all users make the connection with what they need to do next.)

Actual result

  • In Version 5.1.15+211011 there is no session expiration message visible (at least not in FF or Edge). Next, users attempt to click on the "x" to close the empty modal window to try again, but it is inactive.
  • In Version 3.27.19+210928, with some effort scrolling right and left in the small window a "401: Unauthorized" message can be seen, followed by "We are sorry but your session has expired." and "You must be logged in to access this page."
TagsNo tags attached.
Attached Files
5.x Edge.PNG (8,367 bytes)   
5.x Edge.PNG (8,367 bytes)   
5.x ff.PNG (6,934 bytes)   
5.x ff.PNG (6,934 bytes)   
3.x Edge.PNG (24,636 bytes)   
3.x Edge.PNG (24,636 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)5.1.15+211011 / 3.27.19+210928
I will donate to the project if issue is resolvedNo
BrowserEdge / FF
Database type & versionMariadb (MySQL)
Server OS (if known)linux
Webserver software & version (if known)apache 2
PHP Version7.4.13
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

duvemyster

duvemyster

2021-10-16 20:15

reporter   ~66855

Correction in "Expected results" above. In the case of persistent tokens, it would not work in all cases if the main browser window was simply automatically refreshed, such as when separate pages for each group is involved. In that case such an approach would require their persistent token link being loaded again in the main window.

c_schmitz

c_schmitz

2026-10-14 20:26

administrator   ~86464

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

LimeBot

LimeBot

2026-10-20 17:06

administrator   ~86618

Fixed in Release 7.7.0+261020

Related Changesets

LimeSurvey: master 1a3dbeb3

2026-10-14 20:26

c_schmitz


Details Diff
Fixed issue 17664: When the session had expired, the file upload window opened empty and could not be closed
Dev The modal now shows a session expired message and skips saveAndExit() when its content failed to load
Affected Issues
17664
mod - application/views/survey/questions/answer/file_upload/answer.twig Diff File
mod - assets/packages/questions/upload/build/uploadquestion.js Diff File
mod - assets/packages/questions/upload/build/uploadquestion.min.js Diff File
mod - assets/packages/questions/upload/build/uploadquestion.min.js.map Diff File
mod - assets/packages/questions/upload/src/modaldialog.js Diff File

Issue History

Date Modified Username Field Change
2021-10-16 20:07 duvemyster New Issue
2021-10-16 20:07 duvemyster File Added: 5.x Edge.PNG
2021-10-16 20:07 duvemyster File Added: 5.x ff.PNG
2021-10-16 20:07 duvemyster File Added: 3.x Edge.PNG
2021-10-16 20:15 duvemyster Note Added: 66855
2021-10-16 20:15 duvemyster Bug heat 0 => 2
2021-10-18 09:30 galads Assigned To => galads
2021-10-18 09:30 galads Status new => acknowledged
2026-10-14 20:26 c_schmitz Changeset attached => LimeSurvey master 1a3dbeb3
2026-10-14 20:26 c_schmitz Note Added: 86464
2026-10-14 20:26 c_schmitz Assigned To galads => c_schmitz
2026-10-14 20:26 c_schmitz Status acknowledged => resolved
2026-10-14 20:26 c_schmitz Resolution open => fixed
2026-10-14 20:26 c_schmitz Bug heat 2 => 4
2026-10-20 17:06 LimeBot Note Added: 86618
2026-10-20 17:06 LimeBot Status resolved => closed
2026-10-20 17:06 LimeBot Bug heat 4 => 6