[ADMINCTR-131] MgnlUser check missing when opening the Edit User dialog Created: 24/May/22  Updated: 03/Aug/22  Resolved: 15/Jun/22

Status: Closed
Project: Admincentral
Component/s: None
Affects Version/s: 6.2.19
Fix Version/s: 6.2.20

Type: Bug Priority: Neutral
Reporter: Roberto Gaona Assignee: Nguyen Phung Chi
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 1.5d Time Spent: 1.5d
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Problem/Incident
Sub-Tasks:
Key
Summary
Type
Status
Assignee
ADMINCTR-132 Implementation Technical task Completed Nguyen Phung Chi  
ADMINCTR-133 Review Technical task Completed Evzen Fochr  
ADMINCTR-134 PiQA Technical task Completed Evzen Fochr  
ADMINCTR-135 QA Technical task Completed Khayal Musayev  
Template:
Acceptance criteria:
Empty
Date of First Response:
Epic Link: Preferences and User profile
Sprint: AdminX 12
Story Points: 3
Team: AdminX

 Description   

On previous versions to 6.2.19, there was a check when opening the edit user dialog that checked if the user was indeed a MgnlUser.

However, this check isn't present anymore on Magnolia 6.2.19, which causes that trying to edit an ExternalUser yields an exception rather than a warning as before.

New code:

        valueContext.set(new JcrDatasource(contextProvider, DATASOURCE_DEFINITION).getJCRSession().getNodeByIdentifier(contextProvider.get().getUser().getIdentifier())); 

Old implementation:

if (!(user instanceof MgnlUser)){
            uiContext.openNotification(MessageStyleTypeEnum.ERROR, false, i18n.translate("actions.editUserProfile.not.available", dialogName));
            return;
        }

Generated at Sun Feb 11 23:04:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.