- 🇬🇧United Kingdom catch
I think this is actually major. Not sure how we'd write tests for it since I think it requires a race condition or similar? Also phpstan is finding the existing bug in the logic.
#42 looks good so moving back to needs review.
- last update
about 1 year ago 30,063 pass - Status changed to RTBC
about 1 year ago 8:25pm 30 August 2023 - 🇺🇸United States smustgrave
Wow 2008!
Updated the issue summary best I could on patch #42
Leaving the tests tag just in case but noted in the IS this may not be possible.
Applied patch #42 and ran rebuild from admin/reports/status/rebuild which completed without failure.
Change makes sense to me.
- last update
about 1 year ago 29,470 pass - last update
about 1 year ago 29,470 pass - last update
about 1 year ago 29,470 pass - last update
about 1 year ago 29,471 pass - last update
about 1 year ago 29,471 pass - last update
about 1 year ago 29,471 pass 23:35 22:22 Running- last update
about 1 year ago 29,473 pass - 🇳🇿New Zealand quietone
I'm triaging RTBC issues → . I read the IS and skimmed comments. It is very helpful that the proposed resolution identifies the patch being referred to. Although, the sentence is rather cryptic and I didn't understand it until I read the patch. I didn't find any unanswered questions or other work to do.
Leaving at RTBC.
- 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
+++ b/core/modules/node/node.module @@ -1174,10 +1174,11 @@ function _node_access_rebuild_batch_operation(&$context) { + if (!empty($nodes[$nid])) {
Should this be
isset()
instead? - 🇦🇺Australia mstrelan
@kim.pepper probably, but it doesn't make a difference to this issue, as we will still increment the progress whether the node is empty or not.
- Status changed to Fixed
about 1 year ago 7:09am 15 September 2023 - 🇬🇧United Kingdom catch
Going to go ahead and commit this given it's been more or less the same fix since 2009 and has been RTBC multiple times since then.
Once again I don't see how this is testable since it depends on a race condition being triggered during node access rebuild, however it's also a good example of phpstan finding a (very old) bug.
We could open a follow-up for the empty vs. isset change, also think it's probably time to look at a NodeAccessUpdater class similar to the config update helper to try to modernize some of this and make it a bit less tied to batch.
Automatically closed - issue fixed for 2 weeks with no activity.