Project

General

Profile

Actions

Bug #40782

closed

dontvalidate ignored in ValidatorResolver

Added by Nico de Haen about 12 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2012-09-10
Due date:
% Done:

0%

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

Description

The ValidatorResolver tries to resolve the Validator for a model class by testing for naming conventions. This mechanism is not skipped, if the dontvalidate annotation is set. Thus I can not use the naming convention if I have a single action, where the validation is not needed.

Example:

newBookingAction (dontvalidate)

previewBookingAction (dontvalidate) since it shows the current progress

createBookingAction (validate)

My validator is called BookingValidator and is executed each time if an argument of type Tx_MyExt_Domain_Model_Booking is found.

It is possible to rename the Validator and add it explicitly as annotation but ignoring the "dontvalidate" annotation is definitely unexpected behaviour (and it took me half an hour to figure out, where the mistake was...)

I think the $validatorConjunctions with parameter names that are annotated as "dontvalidate" should be ignored.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #58947: Ignorevalidation set, but validated anyway | also for allready created entitiesClosed2014-05-20

Actions
Actions

Also available in: Atom PDF