Project

General

Profile

Actions

Bug #46037

closed

TYPO3 deletes versioned files always

Added by SZUE TSpaete over 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-03-05
Due date:
% Done:

0%

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

Description

Hello,

it seems that TYPO3 does always delete the previous uploaded file when a new file is uploaded in a TCA file upload field, even with activated versioning on that table.
What happens is that that the new file is uploaded, a new history entry will be created and the latest file will be removed. If you now restore to the latest entry, the current file be wiped too and the file entry is invalid now - Results: Data Loss.

This can be simple reproduced by creating a extension with the kickstarter without any plugins, just only one TCA Table with one file upload field, and create a entry on the typo3 backend and upload a file it, replace it with a new file (version) and restore it afterwards.

Please confirm this and please provide a solution.

Actions #1

Updated by Stefan Galinski over 11 years ago

  • Subject changed from Typo3 deletes versioned files always to TYPO3 deletes versioned files always
  • Status changed from New to Accepted

Undoing a change thru the history triggers this problem. In 6.0 it seems to be impossible to undo such a file change.

Actions #2

Updated by SZUE TSpaete over 11 years ago

I added a simple workaround to correct that issue:

In file t3lib/class.t3lib_tcemain.php:

- Uncomment the statement on line 1492:
//$this->removeFilesStore[] = $dest . '/' . $theFile;

These permanently does disable the file removals for files on a versioning table.

Actions #3

Updated by Mathias Schreiber almost 10 years ago

  • Target version changed from 4.7.9 to 7.4 (Backend)
  • Is Regression set to No
Actions #4

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #5

Updated by Benni Mack about 9 years ago

  • Target version deleted (7.5)
Actions #6

Updated by Susanne Moog over 5 years ago

  • Status changed from Accepted to Closed

The concepts changed in the mean time quite a bit (and the extension versioning does not exist standalone anymore). I'm closing the issue now, please create a new issue if you think the issue persists.

Actions

Also available in: Atom PDF