Project

General

Profile

Actions

Bug #40052

closed

deleteRecord_flexFormCallBack deletes file_references

Added by Julian Hofmann over 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-08-22
Due date:
% Done:

100%

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

Description

Files, which are referenced in a flexform (<type>group</type><internal_type>file_reference</internal_type>) will be deleted by t3lib_TCEmain::deleteRecord_flexFormCallBack(), independent of the path or usage by other records.

For normal record fields (e.g. tt_content.images), only file with the internal_type "file" are deleted. Files of internal_type "file_reference" are respected and will not been deleted. There is an appropriate condition in t3lib_TCEmain::extFileFunctions().

But for flexform fields, this differentiation in handling between both internal_types is missing.

In consequence, using lowlevel_cleaner delete will delete many necessary files...


Files

test_deletereference_callback.xml (698 Bytes) test_deletereference_callback.xml Lorenz Ulrich, 2014-06-12 15:36
Actions #1

Updated by Gerrit Code Review about 12 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16236

Actions #2

Updated by Lorenz Ulrich about 12 years ago

I could not reproduce this in 6.0 master. Therefore I assume that FAL changed quite some things and this applies only to 4.7 and below.
6.0 and below is affected.

Actions #3

Updated by Gerrit Code Review about 12 years ago

Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/16237

Actions #4

Updated by Gerrit Code Review about 12 years ago

Patch set 2 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/16237

Actions #5

Updated by Gerrit Code Review about 12 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16239

Actions #6

Updated by Gerrit Code Review almost 12 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/16239

Actions #7

Updated by Gerrit Code Review almost 12 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/16239

Actions #8

Updated by Gerrit Code Review over 11 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/16239

Actions #9

Updated by Gerrit Code Review almost 11 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/16239

Actions #10

Updated by Gerrit Code Review over 10 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/16239

Actions #11

Updated by Lorenz Ulrich over 10 years ago

I attached a FlexForm configuration that helps reproduce the problem.

Actions #12

Updated by Gerrit Code Review over 10 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/16239

Actions #13

Updated by Gerrit Code Review over 10 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/16239

Actions #14

Updated by Gerrit Code Review almost 10 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/16239

Actions #15

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35687

Actions #16

Updated by Lorenz Ulrich almost 10 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF