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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumModeration Delete ~ Bug Resolved but larger issueModeration Delete ~ Bug Resolved but larger issue
Previous
 
Next
New Post
6/15/2005 7:07 PM
 

Recently we've (here on this very forum) experienced errors which we've identified as being related to moderation.  Specifically, the main forum page is not displayed, but rather the dreaded "reference not set to an instance of an object".  Well... we now know and can resolve that bug.

This error only occurs when a Moderator performs a Delete action on a post which is currently the most recent post in a thread.  What happens is that a dangling PostId is left on the Forums_Threads table which contains an invalid reference to the deleted PostId (in the LastPostedPostId field).

This bug can be fixed by modifying the procedure to fix this reference.  Further, there should be (but is apparently not) an FK relationship from this field to the Forums_Posts table.  The moderation action shoud have failed in the delete of the post... but this brings me to my larger concern.

IMO... Moderation should not physically "Delete" anything.  This loses audit trail and any ability to recover the content associated with an action which could be "challenged".  Forums are used for all kinds of things and I would think it appropriate that these records simply be marked as deleted (and excluded from selection) or even moved to an archive table (which could be done without changing other existing code).


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
7/16/2005 9:45 AM
 

Hi,

This solution sounds good, but what if the database is too large and an admin (or a moderator) want to delete old posts for space? I suggest set the body of the post to "deleted" or something (to save disk space - instead of the whole post). Of course if you could make it be deleted completely without affecting everything else is better.

 
New Post
7/19/2005 5:35 AM
 
We have a more graceful way of handling this.  We actual do a cascading delete so the data is removed.  I did not implement the fix so I better double check on this though. 

Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumModeration Delete ~ Bug Resolved but larger issueModeration Delete ~ Bug Resolved but larger issue


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