Given the outcome of #1471584: Passing grants to referred nodes I've been testing out the ref_field/cer modules, and I'm noticing server crashes under certain conditions.
Firstly, these crashes only seem to happen with one or both of the devel_node_access blocks enabled and visible, so it's only really an issue for an admin working on node access settings.
Secondly, the crashes only occur when there is a circular reference where one of them includes some form of cross access and there are users who don't benefit from the cross access.
Take the following config example:
- Nodes A and B refer to each other.
- With view access to B, view access to A is inferred.
- With update access to A, delete access to B is inferred.
Viewing either node as the admin will cause the page to crash with devel_node_access in synchronous mode, or in asynchronous mode will display errors in the delete column of the dna_user block for users who don't gain delete access to B.
The non-admin users can view the nodes without any problems since they can't see the devel_node_access blocks.
Comments
Comment #1
danielb commentedIs there any way to simplify this scenario and still get errors?
By the way - I guess this is important, what were the errors?
Comment #2
morbiD commentedI haven't found any simplifications as yet. The problem literally only seems to occur with 2-way inference AND some form of cross access AND a devel_node_access block.
Regarding the errors, I forgot to mention that I can't actually view them. Clicking on the error links also crashes the server, showing nothing but a white page.
Comment #3
danielb commentedReopen if it's still relevant. Sounds like an insane one to reproduce and debug though. If anyone is in this situation please attempt some debugging, as if this module is doing something wrong I will fix it. You might just be running out of resources because of that massive impact on performance because of having devel_node_access turned on and this: https://www.drupal.org/node/1832204