Project

General

Profile

Actions

Bug #101433

closed

Selection of files in FileBrowser is not possible

Added by Jasmina Ließmann 9 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2023-07-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Scenario:
I want to add an image to a content element with CType "textpic" but the selection from file browser is not carried over.


Files

230719_error-filebrowser.jpg (88.3 KB) 230719_error-filebrowser.jpg Jasmina Ließmann, 2023-07-24 14:44
230724_filebrowser-test.mp4 (17.6 MB) 230724_filebrowser-test.mp4 Jasmina Ließmann, 2023-07-24 15:20

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #101231: "disallowed" option of TCA type=file is not properly respected ResolvedOliver Bartsch2023-07-04

Actions
Related to TYPO3 Core - Bug #101753: DDEV & Traefic substitute semi-colon to ampersand in URLsClosed2023-08-25

Actions
Actions #2

Updated by Kevin Appelt 9 months ago

  • Is duplicate of Bug #101231: "disallowed" option of TCA type=file is not properly respected added
Actions #3

Updated by Jasmina Ließmann 9 months ago

  • Description updated (diff)

In the log I can see the following error message:

Core: Error handler (BE): PHP Warning: Undefined array key 1 in /var/www/typo3/vendor/typo3/cms-filelist/Classes/ElementBrowser/FileBrowser.php line 63

It points to:

$disallowed = str_replace('disallowed=', '', $fileExtensions[1]);

The URL of the file browser contains the value 'disallowed':

wizard/record/browse?token=88681af69375cd93bd3a7f5d8767d480801abb90&mode=file&bparams=|||allowed=gif,jpg,jpeg,pdf,png,svg,tif,tiff,webp;disallowed=|data-64-tt_content-3-image-sys_file_reference


--> The error message seems to have been fixed with #101231, but it is still not possible for me to transfer files from the file browser to the content element.

Actions #4

Updated by Jasmina Ließmann 9 months ago

Attached is a video to clarify. In file browser neither clicking on the file name nor on the + button causes the file to be applied. After selection via checkbox, the loading bar loads very slowly and the file is still not applied. In browser console no error message is shown.

As an addition (if relevant):
The feature toggles for CSP were initially activated in the project, but this has now been deactivated.

'SYS' => [
    'features' => [
        'security.backend.enforceContentSecurityPolicy' => false,
        'security.frontend.enforceContentSecurityPolicy' => false,
    ],
],
Actions #5

Updated by Manfred Egger 9 months ago

I can confirm this for TYPO3 12.4.3 and 12.4.4. In TYPO3 12.4.2 it's working as expected.

Actions #6

Updated by Gerrit Code Review 9 months ago

  • Status changed from New to Under Review

Patch set 1 for branch 12.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/+/80170

Actions #7

Updated by Jasmina Ließmann 9 months ago

  • Is duplicate of deleted (Bug #101231: "disallowed" option of TCA type=file is not properly respected )
Actions #8

Updated by Jasmina Ließmann 9 months ago

  • Related to Bug #101231: "disallowed" option of TCA type=file is not properly respected added
Actions #9

Updated by Kevin Appelt 9 months ago

  • Target version set to next-patchlevel
  • Is Regression set to Yes

I can confirm, that it works with 12.4.2 and the issue shown in the video is present in 12.4.3 and 12.4.4
It seems to be triggered by this change https://github.com/typo3/typo3/commit/4c40d747e4


If anyone stumbles across this issue at a later time: more insights might be found in the slack thread regarding this topic
https://typo3.slack.com/archives/C03AM9R17/p1690209557387129

Actions #10

Updated by Gerrit Code Review 9 months ago

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80171

Actions #11

Updated by Gerrit Code Review 9 months ago

Patch set 1 for branch 11.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/+/80172

Actions #12

Updated by Anonymous 9 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Benjamin Franzke 8 months ago

  • Related to Bug #101753: DDEV & Traefic substitute semi-colon to ampersand in URLs added
Actions

Also available in: Atom PDF