Project

General

Profile

Actions

Feature #104321

closed

Provide method to handle argument mapping exceptions in ActionController

Added by Torben Hansen 5 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2024-07-06
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Extbase extension authors usually work with actions and arguments. When an action has a required argument and the argument is not provided, a RequiredArgumentMissingException is thrown. Extension authors however only have limited possibilities (e.g. overwrite internal processRequest() function) to catch those exceptions. The same applies to extbase property mapping, when the PersistentObjectConverter throws a TargetNotFoundException exception, when a given entitiy is not found.

Extbase extension authors should have the possiblity to handle those exceptions either manually or by configuration, so the exception is not thrown but a dedicated response can be generated. To do so, a new function should be available in ActionController, which extension authors can overwrite if required.


Related issues 2 (2 open0 closed)

Related to TYPO3 Core - Feature #90133: Extbase: configurable 404 handling for missing action parametersNew2020-01-16

Actions
Related to TYPO3 Core - Bug #104828: config.contentObjectExceptionHandler sends 200 HTTP Status and regular cache headersNew2024-09-05

Actions
Actions

Also available in: Atom PDF