Bug #47705
closedUpload file creates two DB entries
100%
Description
If I upload a file to default storage (fileadmin/) two DB entries will be created:
ID | identifier 1 | /./filename 2 | /filename
First entry is from the uploader(?) the second one from the indexer while viewing the file_list (after uploading).
As we tested many times the uploading on the FAL Code Sprint and I didn't see that problem, it must be something from the last weeks.
6.0.x Branch is working correctly.
Updated by Alexander Opitz almost 11 years ago
One possible Problem is the function:
TYPO3\CMS\Core\Resource\Driver\LocalDriver::getFileInfoByIdentifier
$dirPath won't be an empty string but it can be '.' for file identifiers without a path. But this code do not differ between 6.0 and 6.1 branches.
Updated by Alexander Opitz almost 11 years ago
The problem is that the file object with the identifier /./filename wasn't saved till #46595, the file got indexed on next view of file_list. So no problem in 6.0.x (as it seems that fix wasn't backported).
Updated by Gerrit Code Review almost 11 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20348
Updated by Gerrit Code Review almost 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/20879
Updated by Gerrit Code Review almost 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/20880
Updated by Alexander Opitz almost 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 5e2f5bb89766bdc361fde11520ae05c53fcd2bfb.
Updated by Riccardo De Contardi over 6 years ago
- Status changed from Resolved to Closed