If you have "Require Unique Display Name" switched on then it gets difficult if not impossible to edit user profiles in some circumstances.
There is something on dnncommunity.org to cause this issue, but I can't reproduce it locally.
Will rty to find out what the circumstances are and report back here.
List the steps to reproduce the behavior:
To me this line looks suspicious: https://github.com/dnnsoftware/Dnn.Platform/blob/584b0f54bd6b6d237594dd9f96053f14db0b1a53/Website/DesktopModules/Admin/Security/EditUser.ascx.cs#L472
Why would you pass an index of 2?
@Timo-Breumelhof that is not an index of 2, it represents pageSize. See https://github.com/dnnsoftware/Dnn.Platform/blob/dca2a33e16dd365395569b9f4e6151a14b1806a5/DNN%20Platform/Library/Security/Membership/MembershipProvider.cs#L182-L186
Ok, right I mixed them up... thanks
For additional historical context and background only.
https://dnntracker.atlassian.net/browse/DNN-5874
https://dnntracker.atlassian.net/browse/DNN-4781
A contributing configuration factor may be making the first and last name required.
@david-poindexter I now see I looked at the sql, not the code. There the two are in reverse order I think. (If this is the last change):
https://github.com/dnnsoftware/Dnn.Platform/blob/584b0f54bd6b6d237594dd9f96053f14db0b1a53/Website/Providers/DataProviders/SqlDataProvider/07.04.01.SqlDataProvider#L15
Hmm, I now see that sometimes it shows you the error but it does save the data.. (on dnncommunity)
Ok, Peter Donker just looked at this and the code I found suspicious does not seem to be the issue, but he did find another one related to caching of the user (when the displayname already exists) #2878
My gut feeling is that there is a caching issue. When you've edited your display name to something that exists then you get an error. So far so good. But that display name is changed in cache and persists so every time you go to edit you get an error.
I am closing this one in favor of #2878 which more accurately describes the bug and how it will need to be solved, If I am wrong in closing this, feel free to comment or reopen, just trying to avoid duplications. :)
@valadas Peter is convinced it's the same issue, but I'm not as we did clear the cache a lot. Both me, @david-poindexter and @hismightiness
@Timo-Breumelhof so do you have any steps to reproduce that would be different than in #2878 or should we reopen this one because it is different and we have a way to make it happen ? I am just trying to avoid duplicates and issues that are intermittent and we cannot troubleshoot accurately.
@valadas actually no, I only see it on the dnncommunity website. I did not manage to reproduce it locally. Let's wait if it's fixed there when it's upgraded to 9.4?