Project

General

Profile

Actions

Bug #97045

closed

@TYPO3\CMS\Extbase\Annotation\Validate: options not available

Added by Renato Morell over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-02-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I use

    /**
     * @param GenericForm $genericForm
     * @TYPO3\CMS\Extbase\Annotation\Validate("xxx\xxx\Domain\Validator\Security\CsrfValidator",param="genericForm",options={"formName": "genericForm", "action": "save"})
     */
    public function saveAction(GenericForm $genericForm)
    {}

Since version 11.5.7 the option values get lost and are not available in the context of validator. The option keys are set in $this->options but all values are empty strings.

Actions #1

Updated by Christian Kuhn over 2 years ago

Does your 'CsrfValidator' have a 'setOptions()' method? Could you maybe check https://review.typo3.org/c/Packages/TYPO3.CMS/+/73630 (especially the .rst files), and maybe revert that core patch locally to see if it changes something?

Actions #2

Updated by Christian Kuhn over 2 years ago

  • Status changed from New to Needs Feedback
Actions #3

Updated by Renato Morell over 2 years ago

Thanks Christian for the hint. I added the setOptions() and it works now.

Actions #4

Updated by Georg Ringer over 2 years ago

  • Status changed from Needs Feedback to Closed

closed as works now

Actions

Also available in: Atom PDF