Project

General

Profile

Actions

Bug #79517

closed

Replace function of filelist bypasses file_reference filetype limitation

Added by Markus Gehrig almost 8 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2017-01-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I was able whit the replace function of the filelist to add a not allowed filetype in the tt_content image element.

1.) Add a Image with the file extension jpg to the filelist
2.) Add it as image to a tt_content element.
3.) Replace the image in the filelist with a file who has an extension which is not allowed in the image element.

Actions #1

Updated by Frans Saris almost 8 years ago

This is hard, maybe even impossible to solve.

As the allowed file types are defined in TCA. And TCA is can be overruled by TCA on again under certain conditions but also by pageTS.

So it's hard to detect what file type is allowed for every sys_file_reference of a file.

Only solution would be not allowing to change the file type when replacing/renaming a file

Actions #2

Updated by Riccardo De Contardi 6 months ago

  • Status changed from New to Closed

Albeit the issue is valid there has been no advancement in 7+ years - closing for now.

The topic could be picked up again with a fresh start and a new issue

If you think that this is the wrong decision please reopen it or let me know and I'll do it

Actions

Also available in: Atom PDF