[BUGFIX] Fix resource exceptions 57/31757/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Wed, 23 Jul 2014 18:50:56 +0000 (20:50 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 24 Jul 2014 13:08:58 +0000 (15:08 +0200)
commit3b4cdf3e022ce96f40950d22923297a653eeca47
tree642900e11b8083cdf44e249d35d7cc31e2dfe734
parent7c2550ab82cf9ad0d9235914cc1b813e4b7a1852
[BUGFIX] Fix resource exceptions

When rendering the FILES content object,
exceptions due to missing file references and missing collections
are meant to be caught. However they are not, because
InvalidArgumentException and RuntimeException are thrown instead of
ResourceDoesNotExistException

Throw the appropriate exceptions instead and also
fix a wrong check in RecordCollection Repository, where
the return type is checked against NULL while the DB
call returns FALSE when no record is found.

Resolves: #60506
Releases: 6.2, 6.3
Change-Id: I9cea492d814850f75549d280c2de0defc8b91548
Reviewed-on: http://review.typo3.org/31757
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Collection/RecordCollectionRepository.php
typo3/sysext/core/Classes/Resource/FileCollectionRepository.php
typo3/sysext/core/Classes/Resource/ResourceFactory.php