Hello,

After updating to alpha3 I am now getting the message:

Cache Status: "Caching CANCELLED"
Reason: "Form with CSRF protection on page. Enable authcache_form or implement custom code capable of handling CSRF protected forms."

For anonymous users on pages with exposed filters.

Removing the exposed filter from the page enables caching.

authcache_form is enabled and the behaviour is as expected for logged in users i.e. everything is being cached correctly.

Any thoughts? Have I just set something up wrong?

Many thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

znerol’s picture

Status: Active » Needs review
FileSize
1.25 KB

Thanks for the report. I can reproduce the problem.

I've changed the way how role-restriction works in Authcache Form between alpha2 and alpha3. However I did not test the new mechanism together with views exposed filters (which happen to be a bit special).

The attached patch is a first attempt to resolve the problem.

znerol’s picture

Status: Needs review » Fixed

Fix committed: 64ce862. Thanks for reporting.

milton_segretti’s picture

This is great. Seems to be working fine now.

Although there may be an issue with downloading the snapshot due to file permissions. The tar.gz had an error so I just downloaded the individual files.

Many thanks

Status: Fixed » Closed (fixed)

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