Postponed (maintainer needs more info)
Project:
Flippy - Previous / Next pager for Nodes
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Aug 2023 at 21:22 UTC
Updated:
22 Sep 2023 at 14:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wylbur commentedHere's a patch that resolves the D10 warning for missing access check.
Comment #3
keshavv commentedComment #4
anybodyGuess this should be TRUE, not FALSE ;)
Comment #6
anybodyNo idea what that patch does :D Not even the variable exists?
Edit: Sorry I was wrong, the variable exists ;)
Comment #7
anybody@Grevil: Please review
Comment #8
grevil commentedSeems odd to me... I guess we need to also add the access check for:
But I don't get, why we can not simply use the access check of the original query... oh well.
Comment #9
anybody@Grevil indeed sorry! Yes the same question came to my mind... perhaps because it's a method? We shouldn't dig too deep?
I would remove the whole clone in a refactoring, I think. Quite risky.
Comment #10
grevil commentedI agree, I don't even think it is possible to add an access check later on to a populated query. So removing the clone is probably our only option here... A bit unfortunate, since we create duplicate code this way...
Comment #11
grevil commentedOn further inspection, this kind of seems like a core bug. As stated in https://www.drupal.org/node/3201242, the warning
Should only appear if accessCheck() is called without any parameters given.
But in this case, we explicitly set 'accessCheck(TRUE)' on the original query and clone the query object 4 times, meaning the cloned object should also have their accessCheck set explicitly!
Comment #12
grevil commentedI just reread the issue summary and found out, that this isn't an actual error, but instead output by upgrade status...
Have you actually seen the error get thrown using Drupal 10? My guess is, that the upgrade status module isn't smart enough to see, that the explicit access check was simply cloned from the original query object.
Comment #13
grevil commented