Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Change in delete user behavior after upgrade.Change in delete user behavior after upgrade.
Previous
 
Next
New Post
3/4/2011 4:16 PM
 
Trying to figure out if I have a problem or if this just the way that it is intended to work. First , to be clear I am NOT asking how to add a user programmaticly. I have developed a custom registration module using DNN 5.2.2, during my testing I would create users then delete them using the admin. In the Users table the IsDeleted flag would be marked true when I deleted a user. Everything worked grate, so time to move to production. but first I got the smart idea to upgraded my production environment from 5.2.2 to 5.6.1, installed the new module and did a little more testing, now things were not so greate. I have found that the IsDeleted flag in the Uses table is not being set to true when I delete a user, instead the IsDeleted flag  in the UserPortals table is being mark true. So here is the question, in DNN 5.6.1 is the above describe behavior correct for DNN 5.6.1 or did my upgrade brake the delete functionality. Need to figure out if I need to change my code to handle duplicate usernames for deleted users or if I need to fix the site. In my dev 5.2.2 environment my module can reactivate deleted username, but in my prod 5.6.1 environment I can never reuse the same username. Thanks in advance.
 
New Post
3/4/2011 5:19 PM
 
I would try to run another upgrade test on the new 5.6.2 beta for this function, the function of deleting user has been improved to a dummy state. The replease date should be mid-marsh based on Joe's announcement.
(Please backup your db/files to do the beta test.)
 
New Post
3/6/2011 2:31 PM
 
Thanks Limno for the reply, but I am not sure how upgrading will answer my question. Plus I cannot upgrade to a beta in my production environment. Just wanted to know what the default delete user behavior is in version 5.6.1 compared to 5.2.2. I guess I can install the source  version of 5.6.1 in dev and debug the code and see what it does, was hoping to save time and see is anyone know off the top of their head.
 
New Post
3/6/2011 3:44 PM
 
What you are seein in 5.06.01 is the normal "soft-delete" of users behavior. Soft-delete of users was actually introduced in DNN 5.00.01 whereby when a user is "deleted" using the DNN admin users interface or when a user unregisteres, the IsDeleted flag in the UserPortals table is set. As far as I can recall, the IsDeleted column of the Users table had not ever been used by the core code.

There have been a few modifications done in versions since 5.02.02 to user management so perhaps one of those changes is what is breaking your code when installed on a 5.06.01 production site. As you say, one of the disadvantages of the soft-delete feature is that a username of a soft-deleted user cannot be re-used. There are, however, advantages of the soft-delete feature including maintaining user information and an audit trail for those modules such as forums that store the UserID when creating and modifying records in the database.

Regarding the upcoming 5.06.02 release, the "missing" interface to hard delete or reactivate of soft-deleted users will finally be available.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/6/2011 11:37 PM
 
William, that is exactly what I was looking for here, thanks. It's just one of those "who moved my cheese" type movements. Needed to update one line in the code and all is resolved. A lot better than trying to fix a broken upgrade in a production environment. I have no problem with the "soft-delete", it actually comes in handy for what I am doing. I did do a little looking around but could not find a proper list of changes between version, do you know if there is one? Thanks again.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Change in delete user behavior after upgrade.Change in delete user behavior after upgrade.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out