Task #55530

Epic #55070: Workpackages

Epic #54542: WP: Importer / Exporter with relations MM/IRRE/FAL

Story #55520: As an User I want to create exports in v. 6.2 and import them in v. 6.2

Avoid to find a file object with uid 0

Added by Marc Bastian Heinrichs almost 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Category:
DataHandler aka TCEmain
Target version:
Start date:
2014-01-31
Due date:
% Done:

100%

TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

When processing imports there could be the value integer 0 in fields being files (don't ask me why).

E.g. Datahandler tries to find a correspondent file object, which results in a Exception.

Avoid this.


Related issues

Related to TYPO3 Core - Task #52593: Impexp: make 4.x exports work as import in 6.x Closed 2013-10-07

Associated revisions

Revision f5dd8bf2 (diff)
Added by Marc Bastian Heinrichs almost 6 years ago

[BUGFIX] Avoid to get a file object with the uid zero

At some points where a file object is retrieved, a check for
the interpretation as integer is done for the method
argument only. If the argument is 0 a exception will be
thrown from the ResourceFactory.
A file object should only be fetched if the uid is an integer
greater than zero.

Resolves: #55530
Releases: 6.2
Change-Id: I9399d58bac4a48344769ac00207b64e25eea630e
Reviewed-on: https://review.typo3.org/27304
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Markus Klein
Tested-by: Markus Klein

History

#1 Updated by Marc Bastian Heinrichs almost 6 years ago

  • Subject changed from Avoid the Datahandler to find a file object with uid 0 to Avoid to find a file object with uid 0

#2 Updated by Gerrit Code Review almost 6 years ago

  • Status changed from New to Under Review

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

#3 Updated by Marc Bastian Heinrichs almost 6 years ago

  • % Done changed from 0 to 80

#4 Updated by Gerrit Code Review almost 6 years ago

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

#5 Updated by Marc Bastian Heinrichs almost 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 80 to 100

#6 Updated by Riccardo De Contardi over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF