[BUGFIX] Avoid to get a file object with the uid zero 04/27304/3
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Mon, 3 Feb 2014 17:34:58 +0000 (18:34 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Wed, 26 Feb 2014 20:58:49 +0000 (21:58 +0100)
commitf5dd8bf272767366576f16ee466433089fe2b864
treec24cf65f1050b3eebcbb979ee6f65261561b5a95
parente99e12a972b50f558d933c154e00f8dd0fd6673b
[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
typo3/sysext/backend/Classes/View/ThumbnailView.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/frontend/Classes/ContentObject/MediaContentObject.php