Deleting Child Sites Feature (deletes some data on other sites)

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/24/2010 1:03:29 PM
Gravatar
Total Posts 29

Deleting Child Sites Feature (deletes some data on other sites)

Joe,

Hope you are having a good month.  I was doing some site/database clean-up today and noticed something funny.  I enabled the AllowDeleteChildSites key in the web.config so I could delete some child sites that I used as "test" sites.

I deleted a couple child sites successfully using the delete button on the admin interface.  Everything went smoothly.  However, when I started browsing my remaining production sites, I noticed that all of their products, offers, etc from their web stores were all gone.  I didn't check all of other possible site features but all the standard HTML web pages and content on the remaining sites were still there.  Only items from the web stores on my remaining sites were deleted.

It seems there might be a cascading delete effect going on here that is not SiteID restrictive.  I made a SQL backup before I did this so I restored my DB no problem.  But I would like to clean-up my test data by deleting some child sites without it affecting my other production sites.  I looked at the SP: [mp_Sites_Delete] assuming this is the proc that runs to delete a child site but it doesn't appear to delete anything from web store (ws_) tables.


Let me know if you have seen this before.

2.3.3.2 MSSQL

Thanks,

Mike

1/24/2010 1:36:17 PM
Gravatar
Total Posts 18439

Re: Deleting Child Sites Feature (deletes some data on other sites)

Hi,

The stored procedure is ws_Store_DeleteBySite, in looking at it I don't see how it could delete the data for the wrong site.

Maybe you can trace it and see what site id is being passed in.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.