I noticed this error while working on
When filepicker modal is open and session has timeout, selecting repository such as 'private file' doesn't force the page to redirect to login page.
I think when session had timed out, filepicker modal shouldn't be accessible at all.
Steps to reproduce:
- Login as a student
- Navigate to a course
- Click the assignment
- Click add..
- Select any repository except 'private files'
- Leave it open until session time out. (as admin, set '$CFG->sessiontimeout = 0.1;' in config.php to make the session time out immediately)
- Click the Private files button in the file picker
It displays a pop up message containing script has been terminated.