[MAGNOLIA-5866] MgnlUserManager#changePassword wrongly assumes that users are always stored in the root realm folder Created: 05/Aug/14  Updated: 07/Aug/14  Resolved: 07/Aug/14

Status: Closed
Project: Magnolia
Component/s: security
Affects Version/s: 5.3.1
Fix Version/s: 5.2.8, 5.3.2

Type: Bug Priority: Major
Reporter: Christian Ringele Assignee: Espen Jervidalo
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
relation
is related to MAGNOLIA-5870 MgnlUser class hardcodes 'users' work... Closed
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

When an users are created in a folder and not on top level, changing the password of the user doesn't work.

The problem is very well and detailed explained in the lined support ticket: SUPPORT-3851
Also the customer provides a "patch"/needed code changes.

Basically the class searches the user on top level of the user realm.



 Comments   
Comment by Christian Ringele [ 05/Aug/14 ]

I create a public user in /public/test/external and not on top level /public/external.
Here the error when trying to update:

2014-08-05 13:18:13,106 ERROR info.magnolia.cms.security.JCRSessionOp           : Failed to execute change password of user external session operation with /public/external
javax.jcr.PathNotFoundException: /public/external
	at org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:577)
	at org.apache.jackrabbit.core.session.SessionItemOperation$6.perform(SessionItemOperation.java:129)
	at org.apache.jackrabbit.core.session.SessionItemOperation$6.perform(SessionItemOperation.java:125)
	at org.apache.jackrabbit.core.session.SessionItemOperation.perform(SessionItemOperation.java:187)
Generated at Mon Feb 12 04:09:08 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.