Bug #40984

CsrfProtectionAspect fails with paginate view helper and empty f:link action argument

Added by Pankaj Lele about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
Security
Start date:
2012-09-17
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Has patch:
No
Complexity:

Description

When Paginate ViewHelper is used in any template FLOW3 fails while adding Csrf token to the pagination links. It fails even after adding @FLOW3\SkipCsrfProtection as a known workaround for pagination.

Exact error seen is "The parameter class is expected to be either a string or an object ". With topmost backtrace lines as:

- ReflectionMethod::__construct(FALSE, "indexAction")

- TYPO3\FLOW3\Reflection\ReflectionService::getMethodAnnotations(FALSE, "indexAction", "TYPO3\FLOW3\Annotations\SkipCsrfProtection")

- TYPO3\FLOW3\Reflection\ReflectionService::isMethodAnnotatedWith(FALSE, "indexAction", "TYPO3\FLOW3\Annotations\SkipCsrfProtection")

One of the functional test for ViewHelper is also failing because of empty action. http://ci.typo3.robertlemke.net/job/Fluid-ViewHelperTest/lastCompletedBuild/testReport/

#1

Updated by Karsten Dambekalns about 9 years ago

  • Target version set to 2.0 beta 1
#2

Updated by Gerrit Code Review about 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14655

#3

Updated by Gerrit Code Review about 9 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14655

#4

Updated by Gerrit Code Review about 9 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14655

#5

Updated by Gerrit Code Review about 9 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14655

#6

Updated by Christian Müller about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF