Per #2239009: Remove public direct usage of the '_system_path' request attribute, _system_path is an internal concept that nothing other than collaborators of the router itself should deal with.

CsrfAccessCheck::access() needs to validate a token generated by RouteProcessorCsrf::processOutbound(). The extra string passed to the token generator/validator doesn't need to be a _system_path; it could be $route_name and $route_parameters serialized in any other desired way.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xjm’s picture

Priority: Normal » Major
Issue tags: +beta target
dawehner’s picture

Status: Active » Needs review
Issue tags: +PHPUnit
FileSize
7.73 KB

There we go.

Status: Needs review » Needs work

The last submitted patch, 2: drupal-2293501-2.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
23.48 KB
23.48 KB

The access manager seems to be not aware of route matches.

Status: Needs review » Needs work

The last submitted patch, 4: access-2293501-4.patch, failed testing.

alexpott’s picture

Status: Needs work » Closed (duplicate)
alexpott’s picture

Status: Closed (duplicate) » Needs work

Meh ... I was looking at the wrong CSRFAccessCheck class.

dawehner’s picture

Status: Needs work » Closed (duplicate)
znerol’s picture

Status: Closed (duplicate) » Needs review
FileSize
5.2 KB
Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Wim Leers’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
5.35 KB

Straight reroll.

  • catch committed 4691e43 on 8.0.x
    Issue #2293501 by dawehner, Wim Leers, znerol: Use route name and params...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.0.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.