Minor bug in ContentProfileProvider.cs

Topics: Developer Forum
Apr 9, 2009 at 2:16 PM
Edited Apr 9, 2009 at 2:16 PM
I think there is a minor bug in ...\src\N2.Security\ContentProfileProvider.cs, function DeleteProfiles:

  public override int DeleteProfiles(ProfileInfoCollection profiles)
            string[] usernames = new string[profiles.Count];
            int i = 0;
            foreach(ProfileInfo profile in profiles)
                usernames[i] = profile.UserName;
            return DeleteProfiles(usernames);

It must be:  usernames[i++] = profile.UserName;

It looks like DeleteProfiles is never called, but any way, it's better to fix it.

Regards, Andrej

Apr 16, 2009 at 9:11 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.