U4-10415 - Changing the user username results in a Server Error

Created by Eric Frost 14 Sep 2017, 09:35:38 Updated by Sebastiaan Janssen 14 Sep 2017, 12:06:51

Duplicates: U4-9857

Going to the back office and changing the login username gives the following error:

Server Error in '/' Application.

Value cannot be null. Parameter name: user

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: user

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentNullException: Value cannot be null. Parameter name: user] Umbraco.Core.Models.UserExtensions.IsAdmin(IUser user) +84 Umbraco.Core.Security.MembershipProviderExtensions.CanResetPassword(MembershipProvider provider, IUserService userService) +85 Umbraco.Web.UI.Umbraco.Controls.PasswordChanger.OnPreRender(EventArgs e) +124 System.Web.UI.Control.PreRenderRecursiveInternal() +88 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Control.PreRenderRecursiveInternal() +160 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +985

It does not result in an error when you change the users password.

  • STEPS TO REPRODUCE * Go to backoffice, User sections. Select a user. Change the username Hit save Results in an error

Expected same result as when you change the password -> some alert that says username is updated

  • WORK AROUND * It seems to save the changes done to the user. If you log out and log in with the NEW username it then updates in the backoffice with the new username under the user.

Comments

Priority: Minor

Type: Bug

State: Duplicate

Assignee:

Difficulty:

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: