We have a project, where we get the next error when we save a user:
ERROR umbraco.cms.presentation.user.EditUser - Exception
System.Exception: A user with the login '*@local.nl' already exists
at umbraco.BusinessLogic.User.set_LoginName(String value)
at umbraco.cms.presentation.user.EditUser.SaveUser_Click(Object sender, EventArgs e).
But when we save a another user, everything's fine.
We find this error after copy the database to another environment.
All this worked before upgrading. What could we be doing wrong?
A user with the login '*@local.nl' already exists
Hi,
We have a project, where we get the next error when we save a user:
ERROR umbraco.cms.presentation.user.EditUser - Exception System.Exception: A user with the login '*@local.nl' already exists at umbraco.BusinessLogic.User.set_LoginName(String value) at umbraco.cms.presentation.user.EditUser.SaveUser_Click(Object sender, EventArgs e)
.But when we save a another user, everything's fine.
We find this error after copy the database to another environment.
All this worked before upgrading. What could we be doing wrong?
Jan
Did you check if the user exists in the users table ?
Dave
yes, and I can't find them.
I think something went wrong in the
EnsureUniqueLoginName
of theumbraco.BusinessLogic.User
class. But i don't know how to debug umbraco source?Jan
It also strikes me that the user is not shown in the tree.
Looking at Umbraco source code there is a check when setting the loging name to make sure it's unique :
https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/umbraco.businesslogic/User.cs#L253
This will call the userservice method FindByUsername:
https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Core/Services/UserService.cs#L416
Maybe you can debug it with the Umbraco source to see what goes wrong.
Because I tried creating a user with the same e-mail as you in a 7.5.4 project and that works fine. So there must be something wrong in your setup.
Dave
Hi dave,
After digging down the source, we found the issue inside umbraco. We create a issue on the issue tracker.
Link: U4-9195 A user with the login already exists
If you change a user with a other id than 1, it went wrong on sql server 2008 ( Sql server >=2012).
Jan
I am getting the same with Umbraco version 7.5.4 assembly: 1.0.6136.27241 and Sql server R2008 having implemented and U/G
is working on a reply...