Project

General

Profile

Actions

Bug #53871

closed

Null values for argument values not possible

Added by Georg Ringer over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-11-22
Due date:
% Done:

0%

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

Description

If a controller got as argument a persistable object it is not possible to have it as optional value.

e.g. newsController

public function detailAction(Tx_News_Domain_Model_News $news = NULL, $currentPage = 1) {

reason is because in PersistentObjectConverter.php in method fetchObjectFromPersistence an exception is thrown

throw new \TYPO3\CMS\Extbase\Property\Exception\TargetNotFoundException('Object with identity "' . print_r($identity, TRUE) . '" not found.', 1297933823);
        

Actions #1

Updated by Georg Ringer over 10 years ago

  • Status changed from New to Rejected
Actions #2

Updated by Georg Ringer over 10 years ago

  • Status changed from Rejected to New

the big problem is that in production context, records can be removed all the time and I don't want a general exception there but to handle that in the extension itself, e.g. redirect to a list view or displaying a specific content!

Actions #3

Updated by Georg Ringer about 10 years ago

  • Status changed from New to Closed

duplicate of #55861

Actions

Also available in: Atom PDF