Bug #92444
closedFAL Error when accessing file in subfolder of new sys_file_storage
100%
Description
Create a new sys_file_storage pointing to directory outside fileadmin.
Files and folder are shown correctly
But when you try to access file in subdirectory of the new sys_file_storage, TYPO3 crash.
Frontend template using files of alternative sys_file_storage crash also.
Worked well under TYPO3 10.4.8, broken in TYPO3 10.4.9
Accessing files in root directory of the new sys_file_storage work well. Only files in subfolder are affected.
Files
Updated by Helmut Hummel about 4 years ago
- Status changed from New to Needs Feedback
Can you please provide the exact configuration of the storage that causes issues for you?
How is the file location configured (absolute/relative)? What is the absolute path of this storage related to the absolute path of fileadmin?
What options are set (readolny, public, ...)?
Updated by Christophe Monard about 4 years ago
- File assets-1.png assets-1.png added
- File assets-2.png assets-2.png added
- File assets-3.png assets-3.png added
Here is the configuration of the sys_file_storage created for our resources (cf additional screenshot) :
- driver : local - Base path : typo3conf/ext/arc_project/Resources/Public/boilerplate/dist/prod/assets/img/ - Type : relative - use case sensitive : yes - is default : no - auto extract metadata : no - processing folder : 1:_processed_ - is browsable : yes - is public : yes - is writable : no - is online : yes
I tried to remove the processing folder and add write permission on it without success.
Files in root directory are accessible but files in sub directory aren't viewable.
I rolled back to 10.4.8 in order to get functionnal website.
Updated by Helmut Hummel about 4 years ago
- Related to Bug #92014: Move SVG image processing into an own file processor added
Updated by Gerrit Code Review about 4 years ago
- Status changed from Needs Feedback to Under Review
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/+/65963
Updated by Helmut Hummel about 4 years ago
I tried to remove the processing folder and add write permission on it without success
Thanks providing the config helped to reproduce this issue. In fact this is a bug that existed before but never fully surfaced.
The attached change now fully fixes the issue (e.g. you will see preview thumbs of the SVGs in this storage again, which was not working in 10.4.8 either).
Updated by Christophe Monard about 4 years ago
Helmut Hummel wrote:
I tried to remove the processing folder and add write permission on it without success
Thanks providing the config helped to reproduce this issue. In fact this is a bug that existed before but never fully surfaced.
The attached change now fully fixes the issue (e.g. you will see preview thumbs of the SVGs in this storage again, which was not working in 10.4.8 either).
Thanks Helmut!
I will wait for next T3 release and make feedback.
If i gave time i will patch development plateform in order to test if it's ok now
Updated by Helmut Hummel about 4 years ago
Christophe Monard wrote:
I will wait for next T3 release and make feedback.
If i gave time i will patch development plateform in order to test if it's ok now
Feedback before a release would be great. Thanks.
I also have a question regarding your use case for such storage:
What do you use this storage exactly for? How are the files in there actually used?
Updated by Christophe Monard about 4 years ago
Helmut Hummel wrote:
Christophe Monard wrote:
I will wait for next T3 release and make feedback.
If i gave time i will patch development plateform in order to test if it's ok nowFeedback before a release would be great. Thanks.
I also have a question regarding your use case for such storage:
What do you use this storage exactly for? How are the files in there actually used?
Mainly cause I’m lazy and don’t want to copy all useful resources between front end kit and fileadmin.
Logo and partner logo / optimized picture are stored there and can be included everywhere without duplicating folder contents.
I will try the patch tomorrow and keep you in touch.
Updated by Hartmut Steglich about 4 years ago
same problem and use case here:
- have site package extension in /packages/MYSITEPACKAGE according to https://docs.typo3.org/m/typo3/guide-installation/master/en-us/MigrateToComposer/BestPractices.html#completely-clear-typo3conf-ext-folder
- add sys_file_storage to an Resources/Public/Images/... subfolder in MYSITEPACKAGE
- use logo and other artwork from this folder in SCSS + HTML (TYPO3 uses added sys_file_storage but not default/fallback in FE)
- use assets from added sys_file_storage for additional iconset in bootstrap_package CEs
Updated by Christophe Monard about 4 years ago
Helmut Hummel wrote:
Christophe Monard wrote:
I will wait for next T3 release and make feedback.
If i gave time i will patch development plateform in order to test if it's ok nowFeedback before a release would be great. Thanks.
I also have a question regarding your use case for such storage:
What do you use this storage exactly for? How are the files in there actually used?
Hi Helmut,
The patch solve the problem for me.
Thanks :)
Updated by Gerrit Code Review about 4 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66674
Updated by Helmut Hummel about 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b90897db1d13e3078609f1e66c4c91d2df465570.
Updated by Oliver Hader about 4 years ago
- Related to Bug #92862: Patch #92014 still not merged in last release and SVG aren't handled properly added
Updated by Benni Mack almost 4 years ago
- Status changed from Resolved to Closed