Bug #91309
closedHidden files and folders are not shown in the filelist
100%
Description
Hidden files and folders (file- folder names beginning with a dot) are normally not shown in the filelist.
There is a user setting "Show hidden files and folders in the filelist" and if you check it, hidden files and folders are shown (as long as they are found directly in fileadmin) on the first click on the module "Filelist".
Attention: In versions older than 10 you have to logout and login first.
After that you select/click "fileadmin (auto-created)" in the page tree, but than the hidden files are gone again (you cant see them anymore).
Step by step:
1) Go to filelist -> fileadmin and create a folder called .hidden-folder
2) After you pressed enter you will not see this folder although it exist
3) Go to filelist -> fileadmin and create a file called .hidden-file
4) After you pressed enter you will not see this file although it exist
5) Go to our user settings an check "Show hidden files and folders in the filelist" + save
6) Only TYPO3 Version 8 and 9: Log out and in again
7) Click the module Filelist
8) You will see the hidden folder in the page tree and both (file and folder) on the right side
9) Click on fileadmin in the page tree
10) The hidden file and folder are not visible anymore on the right side. There is no way to rename or delete the hidden file.
Checked in TYPO3 Version 8, 9 and 10
Updated by Stefan Froemken about 4 years ago
- Status changed from New to Accepted
Jep, I can confirm this issue.
The problem seems to be in FileListController::initializeObject(). There you have a condition on $combinedIdentifier.
If you click the filelist module the first time there is no $_GET['id'], so $combinedIdentifier is empty. In that case $this->getBackendUser()->getFileStorages() will be called which executes the fileNameFilter for hidden files.
If you click on a folder in page-tree, an id is set. $combinedIdentifer will be filled. But in that condition no FileStorage initialization will happen, so FileNameFiler will not be executed.
Stefan
Updated by Gerrit Code Review about 4 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64424
Updated by Gerrit Code Review about 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64424
Updated by Gerrit Code Review about 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64424
Updated by Gerrit Code Review almost 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64537
Updated by Stefan Froemken almost 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 128828a57e68e3196338a8ac6db13aaa92b5ee1c.