+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Major issue found in 3.7 SP4 for .net 3.5

Major issue found in 3.7 SP4 for .net 3.5

4 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    13 Oct 2010
    Link to this post
    Hi,

    Last week I upgraded a customer's site with3.7 SP4 for .net 3.5 

    This customer has a secure client area and we discovered a few days ago the registration was failing every time with "DuplicateEmail" being returned.

    We then tested registering through Sitefinity Admin rather than via our public form and we got the same error.

    After much mucking about it dawned on us that maybe it was the service pack and so we rolled back the service pack affected files.

    We tested the form and have confirmed with only a rollback to SP3 it is now working fine. The offending bit of code is below:

    Telerik.Security.UserManager manager = new UserManager();
    MembershipCreateStatus status;
    manager.CreateUser(Username.Text, Password.Text, Email.Text.ToLower(), null, null, true, out status);

    The CreateUser method always returns the status MembershipCreateStatus.DuplicateEmail without fail whether a user's email exists or not.

    Can you please look into this asap a it could be a disaster for many users.

    Thanks,

    Seth
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Oct 2010
    Link to this post
    Hi Seth,

    UserManager class and its CreateUser method uses MembershipProvider and its methods to add a new user. We call MembershipProvider.CreateUser ASP.NET method of System.Web.Security.
    Similar error is thrown when you have set MembershipProvider.RequiresUniqueEmail Property and there is a user with this email.

    By default we set this property to false - requiresUniqueEmail="false"

    If the user with this mail does not exist in the provider you should be able to register it as the attached video illustrates.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    13 Oct 2010
    Link to this post
    Hi Ivan,

    Thanks you for your reply. 

    Can you confirm that you have tested 3.7 SP4 with requiresUniqueEmail="true". It looks like you have misunderstood what I am saying. The customers site which has been working for months requires a unique email address to be registered we just upgraded to SP4 a few days ago - no other changes have been done.

    If you set requiresUniqueEmail="true" in SP4 then try to register a new user with an "unregistered" email, Sitefinity will return DuplicateEmail error EVEN if the email is unique. This happens in a custom registration from AND Sitefinity Administration - in fact any time the CreateUser method is used.

    This was working in <= SP3 but as soon as you upgrade to SP4 it stops working. The only way to recover was to down the SP3 patch and re-apply... it then started working again.

    Thanks,

    Seth


  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Oct 2010
    Link to this post
    Hello Seth,

    Below is the provider declaration, build - Sitefinity 3.7 SP4

    <add name="Sitefinity" connectionStringName="DefaultConnection" type="Telerik.DataAccess.AspnetProviders.TelerikMembershipProvider, Telerik.DataAccess" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" passwordStrengthRegularExpression="" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0"/>

    There are no changes in the TelerikMembeshipProvider between Sitefintiy SP3 and Sitefinity SP4 and the method that checks for duplicate entries.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered