- Issue created by @ericgsmith
- Merge request !92Issue #3465364: Fix fatal error when password_policy_history is enabled → (Merged) created by ericgsmith
- Status changed to Needs review
4 months ago 1:53am 2 August 2024 - Status changed to RTBC
4 months ago 12:39pm 2 August 2024 - 🇺🇦Ukraine rollins
I can confirm that changes from the MR make sense here
It will prevent us to have the fatal error - 🇦🇺Australia yeniatencio
Creating patch based on @ericgsmith as need an urgent solution in the meantime.
- 🇷🇴Romania Kosa Ilma
I get the same error, the patch from #9 fixed the error.
Thank you! - 🇮🇳India vishalkhode
Changes looks good to me. However, If we add test coverage for the same, that would be great.
- 🇯🇴Jordan Rajab Natshah Jordan
Facing the same issue.
Thanks, the MR and patch in #9 are working. - First commit to issue fork.
- Status changed to Needs review
4 months ago 10:43am 7 August 2024 Added test coverage in the newly created testPasswordResetBehaviorsUi() as it covers specific scenario, however reused the existing test file as most of code can be leverage from it rather than creating separate test file & applied a super nitpicky :void return on the existing test function as well. Apart form it nothing seems to be left.
Please review, moving NR
- Status changed to Needs work
4 months ago 11:11am 7 August 2024 - 🇮🇳India ankitv18
Thanks for covering the test but it would be great if it is in password_policy_history sub-module.
Thanks for reviewing, kept the test coverage in the main module by considering some couple of things like:
- if issue is from the password_policy module itself then still error 'll be caught, no additional code meed to write in that scenario
- More or less same code can be leverage as it added in the existing test file from the optimisation perspective
Any specific concerns/suggestions over it?
- Status changed to Needs review
4 months ago 11:50am 7 August 2024 - Status changed to Needs work
4 months ago 2:47pm 7 August 2024 - 🇮🇳India vishalkhode
@pooja_sharma: Thanks for the adding test coverage, let's not add tests in PasswordResetBehaviorsTest as that test is specifically to validating password reset functionality. And here we want verify password_history functionality, so that it doesn't accept repeated password. Lets see if we can add test coverage for following:
- Password History constraint works as expected.
- When user try to provide the same password again from UI, it throws an error.
For this, we can either update the existing tests i.e PasswordPolicyInterfaceTest.php or we can add a new tests in password_history submodule similar to PasswordCharacterOperationsTest.php
- Status changed to RTBC
4 months ago 3:15pm 7 August 2024 Thanks @vishalkhode for providing detailed suggestions, chosen the first opt (to update the existing tests i.e PasswordPolicyInterfaceTest.php), as I need to add only minimal single line code for the test coverage along with leverage complete developed code, I believe if similar issue encounter by any other sub-module that can also be cover similarly (test coverage perspective).
-
vishalkhode →
committed 9668afe3 on 4.0.x authored by
ericgsmith →
Issue #3465364 by pooja_sharma, ericgsmith, ankitv18: Fix Fatal error...
-
vishalkhode →
committed 9668afe3 on 4.0.x authored by
ericgsmith →
- Status changed to Fixed
4 months ago 5:56pm 7 August 2024 - 🇮🇳India vishalkhode
Thanks @pooja_sharma, changes looks good to me. Verified and it's seems to be working fine. However, I also noticed that we don't have test coverage which checks for Password Policy history constraint, but that's fine, we can create a separate ticket for it and fix it there. Hence, merged.
Thanks everyone for working on this. Automatically closed - issue fixed for 2 weeks with no activity.