- Issue created by @Rajab Natshah
- @rajab-natshah opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 6:03pm 16 March 2023 - 🇬🇧United Kingdom Alina Basarabeanu
This should be fixed with issue 3362201 where the access check is set to TRUE.
- Status changed to RTBC
about 1 year ago 2:09pm 12 October 2023 - 🇧🇪Belgium BramDriesen Belgium 🇧🇪
I also bumped into this today while doing a random upgrade-status check on everything for a project.
Patch looks good!
- 🇯🇴Jordan Rajab Natshah Jordan
Alina,
accessCheck(TRUE)
oraccessCheck(FALSE)
?
to me it feels that a session user with authenticated user role which trying to use the Password Policy Validation Manager
should be able to get the list of validation roles by the query.
Also if an anonymous user should have response from the system while registering.
This why I had this withaccessCheck(FALSE)
Have you had issues testing with anonymous users and
accessCheck(TRUE)
?
I'm sure you will face issues.I'm only for any. the old logic was like
accessCheck(FALSE)
under Drupal 9.
But under Drupal 10 it is a must have access check.
Having the default change.Open for a better logic
- 🇧🇪Belgium BramDriesen Belgium 🇧🇪
The old logic was like accessCheck(FALSE) under Drupal 9.
Isn't it the other way around?
If ::accessCheck() is not called, then the query defaults to checking access, i.e. behaves as if ::accessCheck(TRUE) had been called. This behavior has been the source of many bugs, as it is easy for developers to forget that this happens.
Source: https://www.drupal.org/node/3201242 →
However, given the context of the query here I think setting it to FALSE here is fine since it's about the roles the current user is in.
- Assigned to Kristen Pol
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Assigning to myself as I'm reviewing/merging ready RTBC fixes/updates over the next few days.
- Issue was unassigned.
- Status changed to Postponed: needs info
9 months ago 6:15pm 8 February 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
For some reason, I'm not able to reproduce the error though I've seen these before for other things. Please add detailed steps to reproduce. Looking at the code, it looks fine and I agree, based on the usage, that FALSE is correct. I'm happy to merge this once I'm able to reproduce the error and see it fixed with the MR/patch.
- Assigned to Kristen Pol
- Status changed to RTBC
9 months ago 1:21am 9 February 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
I can see this in the upgrade_status report, so assigning back to me.
-
Kristen Pol →
committed 7a383870 on 4.0.x authored by
Rajab Natshah →
Issue #3348548 by Rajab Natshah, Kristen Pol, BramDriesen: Fix Entity...
-
Kristen Pol →
committed 7a383870 on 4.0.x authored by
Rajab Natshah →
- Issue was unassigned.
- Status changed to Fixed
9 months ago 1:25am 9 February 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Applying the patch fixed the upgrade_status report.
The fix has been merged and will be part of the next release.
- 🇺🇸United States tsquared212 Chicago, IL
Kristen Pol → credited tsquared212 → .
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Adding credit for those who worked on the duplicate issue:
📌 Drupal 10 compatibility fixes for Password Policy Closed: duplicate
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Adding credit for those who worked on another duplicate issue:
📌 Drupal 10 compatibility - to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Closed: duplicate
Automatically closed - issue fixed for 2 weeks with no activity.
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
This is part of the new 4.0.1 release → .