U4-9867 - Changing a Username Throws Error

Created by Nicholas Westby 05 May 2017, 17:24:45 Updated by Bjarne Fyrstenborg 10 May 2017, 07:15:05

Duplicates: U4-9857

I installed Umbraco 7.6 to test it out in a sandbox. I installed it with a username of "admin@admin.admin" (because the installer requires an email address for the username). I then did other stuff for a while, so Umbraco logged me out. I then logged back in, and went to the users section to change the username from "admin@admin.admin" to "admin". When I clicked save, I got this error message:

!user-save-error.png!

Here are the most recent entries from my Umbraco log file:

2017-05-05 09:48:50,825 [P9872/D10/T37] INFO umbraco.BusinessLogic.Log - Log scrubbed. Removed all items older than 2017-05-04 09:48:50 2017-05-05 10:07:17,560 [P9872/D10/T40] INFO Umbraco.Core.Logging.OwinLogger - Event Id: 0, state: User logged will be logged out due to timeout: admin@admin.admin, IP Address: 127.0.0.1 2017-05-05 10:08:24,242 [P9872/D10/T40] INFO Umbraco.Core.Security.BackOfficeSignInManager - Event Id: 0, state: Login attempt succeeded for username admin@admin.admin from IP address 127.0.0.1 2017-05-05 10:08:24,242 [P9872/D10/T40] INFO Umbraco.Core.Security.BackOfficeSignInManager - Event Id: 0, state: User: admin@admin.admin logged in from IP address 127.0.0.1 2017-05-05 10:08:38,846 [P9872/D10/T44] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentNullException: Value cannot be null. Parameter name: user at Umbraco.Core.Models.UserExtensions.IsAdmin(IUser user) at Umbraco.Core.Security.MembershipProviderExtensions.CanResetPassword(MembershipProvider provider, IUserService userService) at Umbraco.Web.UI.Umbraco.Controls.PasswordChanger.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

More related info:

  • This was a fresh install of Umbraco 7.6.0.
  • I chose to install in SQL Server 2012, and I chose the first starter kit.
  • I kept getting that error when clicking on the user, until I logged out and back in.

1 Attachments

Comments

Andy Butland 09 May 2017, 13:04:13

Noticed this one was already reported - http://issues.umbraco.org/issue/U4-9857.


Priority: Major

Type: Bug

State: Duplicate

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.0

Due in version:

Sprint:

Story Points:

Cycle: