Bug #40782
closeddontvalidate ignored in ValidatorResolver
0%
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.
Updated by Anja Leichsenring over 11 years ago
- Status changed from New to Accepted
- Assignee set to Anja Leichsenring
- Target version set to Extbase 6.1
I will have a look into this.
Updated by Alexander Schnitzler about 11 years ago
- Target version changed from Extbase 6.1 to Extbase 6.2
Updated by Anja Leichsenring almost 11 years ago
- Target version changed from Extbase 6.2 to Extbase 6.3
Updated by Anja Leichsenring over 9 years ago
- Status changed from Accepted to New
Updated by Alexander Opitz over 9 years ago
- Project changed from 534 to TYPO3 Core
- Category changed from Extbase: Validation to Extbase
- Target version changed from Extbase 6.3 to 7.0
- TYPO3 Version set to 6.2
- Is Regression set to No
Updated by Mathias Schreiber over 9 years ago
- Target version changed from 7.0 to 7.1 (Cleanup)
Updated by Benni Mack almost 9 years ago
- Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Updated by Susanne Moog almost 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Anja Leichsenring about 7 years ago
- Assignee deleted (
Anja Leichsenring)
Updated by Susanne Moog about 4 years ago
- Status changed from New to Needs Feedback
Is that still the case in newer TYPO3 versions? If I remember correctly the magical mapping between names and validators has been resolved.
Updated by Susanne Moog about 4 years ago
- Related to Bug #58947: Ignorevalidation set, but validated anyway | also for allready created entities added
Updated by Benni Mack almost 4 years ago
- Status changed from Needs Feedback to Closed
Closing this one now due to lack of feedback.