Project

General

Profile

Actions

Bug #47705

closed

Upload file creates two DB entries

Added by Alexander Opitz almost 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-04-29
Due date:
% Done:

100%

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

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #46595: Files are not indexed on upload in file-moduleClosedSteffen Ritter2013-03-23

Actions
Actions #1

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.

Actions #2

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).

Actions #3

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

Actions #4

Updated by Alexander Opitz almost 11 years ago

  • Target version set to 6.1.1
Actions #5

Updated by Alexander Opitz almost 11 years ago

  • Assignee set to Alexander Opitz
Actions #6

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

Actions #7

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

Actions #8

Updated by Alexander Opitz almost 11 years ago

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

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF