Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jan van Helvoort 17 posts 190 karma points c-trib
    Nov 15, 2016 @ 21:12
    Jan van Helvoort
    0

    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

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 10x admin c-trib
    Nov 16, 2016 @ 06:56
    Dave Woestenborghs
    0

    Did you check if the user exists in the users table ?

    Dave

  • Jan van Helvoort 17 posts 190 karma points c-trib
    Nov 16, 2016 @ 07:03
    Jan van Helvoort
    0

    yes, and I can't find them.

    I think something went wrong in the EnsureUniqueLoginName of the umbraco.BusinessLogic.User class. But i don't know how to debug umbraco source?

    Jan

  • Jan van Helvoort 17 posts 190 karma points c-trib
    Nov 16, 2016 @ 07:37
    Jan van Helvoort
    0

    It also strikes me that the user is not shown in the tree.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 10x admin c-trib
    Nov 16, 2016 @ 08:14
    Dave Woestenborghs
    0

    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

  • Jan van Helvoort 17 posts 190 karma points c-trib
    Nov 17, 2016 @ 08:20
    Jan van Helvoort
    100

    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

  • stephen 84 posts 125 karma points
    Nov 28, 2016 @ 14:54
    stephen
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies