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 over 1 year ago. Updated over 1 year ago.

Status:Resolved Start date:2014-01-31
Priority:Should have Due date:
Assigned To:Marc Bastian Heinrichs % Done:

100%

Category:DataHandler aka TCEmain Spent time: -
Target version:6.2.0
TYPO3 Version:6.2 Complexity:
PHP Version: 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 Core - Task #52593: Impexp: make 4.x exports work as import in 6.x Resolved 2013-10-07

Associated revisions

Revision f5dd8bf2
Added by Marc Bastian Heinrichs over 1 year 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 over 1 year 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 over 1 year 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 over 1 year ago

  • % Done changed from 0 to 80

#4 Updated by Gerrit Code Review over 1 year 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 over 1 year ago

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

Also available in: Atom PDF