Project

General

Profile

Actions

Feature #104321

open

Provide method to handle argument mapping exceptions in ActionController

Added by Torben Hansen 15 days ago. Updated 4 days ago.

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

0%

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 1 (1 open0 closed)

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

Actions
Actions

Also available in: Atom PDF