Bug #86153
closed
FileList fails with SiteNotFoundException
Added by Alexander Jahn almost 6 years ago.
Updated almost 6 years ago.
Category:
Site Handling, Site Sets & Routing
Description
In TYPO3 9.4 opening the FileList module fails with a SiteNotFound exception.
SiteResolver expects the parameter 'id' to be a pageID that can be resolved to a site configuration.
The FileList module uses the same parameter for a directory.
The parameter is cast to int resulting in TYPO3 trying to resolve a directory identifier as a page id.
Files
- Category set to Site Handling, Site Sets & Routing
- Target version changed from 9.4 to 9 LTS
- Status changed from New to Needs Feedback
can not reproduce. Can you elaborate on your setup?
e.g. site configuration yes / no?
I also fail to reproduce the issue. I have a mixed state of regular sites and pseudo sites.
I'm having this problem in a very simple setup.
One rootpage with 5 subpages and a single site configuration.
There are two file storages, (1) is the default fileadmin one, (3) the custom storage throwing the error.
When browsing the filelist for Storage (1) the id parameter '1:/SomeFolder/' is cast to int 1 and can resolve a siteconfiguration for pageID 1.
When browsing the filelist for Storage (3) the id parameter '3:/SomeOtherFolder/' is cast to int 3 and causes an exception because there is no page with uid 3 in my setup.
- Status changed from Needs Feedback to Accepted
I can confirm the issue. Once the file list is called with an id get parameter, which does not match a valid page the exception is thrown
To reproduce:
- add a new file storage record
- delete the page that has the id of the storage record
- go to file list and try to access the storage
- Status changed from Accepted to In Progress
- Assignee set to Anja Leichsenring
- Status changed from In Progress to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
- Related to Task #99121: Have site request attribute in filelist module added
Also available in: Atom
PDF