Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
history.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jun 2015 at 10:21 UTC
Updated:
7 Apr 2020 at 16:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
olli commentedAdding a cache context seems to help.
Comment #2
berdirNice. This was caused by the removal of adding that context by default for caching rendered entities. And #2493033: Make 'user.permissions' a required cache context would ensure that things like this are less likely to happen. Except when your anonymous and authenticated users have exactly the same permissions ;)
Still makes sense to fix this anyway of course.
Comment #3
berdirTest should be easy, on a page that adds this, do an assertCacheContext() for this context.
Comment #4
olli commentedComment #5
berdirYes, like that. RTBC if bot agrees.
Comment #7
catchCommitted/pushed to 8.0.x, thanks!
Comment #10
rhsantos commentedHello,
I think this issue still happens with drupal 8.8.5
I´m having trouble with ldap_sso plugin. I have activated module mod_authn_ntlm in my apache instance. Everything seemed to work properly in Drupal, except nodes. Views are properly seen for example. But when I access a node then I have an unauthorized access, even if I´m logged in as root.
As user I receive the following errors in Apache:
[Tue Apr 07 10:08:37.229231 2020] [authz_user:debug] [pid 18540:tid 1644] mod_authz_user.c(77): [client ::1:49909] AH01663: access to /intraceh/index.php/es/history/36/read failed, reason: user 'CEDEXINT\\rhsantos' does not meet 'require'ments for user to be allowed access, referer: http://localhost:9090/intraceh/index.php/es/FlujoContratoMenor
Debugging with Google Chrome it says it is a POST request. When I launch the same request directly throug Chrome it is a GET request and it is properly shown (just a number). Here it is the object that fails to download:
Request URL: http://ceh-pxi-05.interno.cedex.es:9090/intraceh/es/history/36/read
Request Method: POST
Status Code: 401 Unauthorized
Remote Address: XXX.xxx.XXX.xxx:9090
Referrer Policy: no-referrer-when-downgrade
If you think this is another problem, please feel free to tell me. Or tell me how to debug it.
Thanks anyway,
Regards, Ricardo