Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2099419-role-restriction-views-exposed-filters.diff | 1.25 KB | znerol |
Comments
Comment #1
znerol CreditAttribution: znerol commentedThanks 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.
Comment #2
znerol CreditAttribution: znerol commentedFix committed: 64ce862. Thanks for reporting.
Comment #3
milton_segretti CreditAttribution: milton_segretti commentedThis 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