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...Administration ...Administration ...DeletePortalDesktopModules stored procedureDeletePortalDesktopModules stored procedure
Previous
 
Next
New Post
6/15/2012 11:15 AM
 

DNN 5.6.7 install and upgrade packages still have a broken stored proc for DeletePortalDesktopModules.  The current stored prod will remove ALL assigned modules if you remove ANY module from ANY portal (either Premium or not) due to missing criteria in the stored proc.

I posted a fix in Gemini and on these forums in December 2011, but no change was made in the 5.6.7 package released in Feb 2012.

The stored proc in DNN 6 works, as does the following (the bolded text indicate the changes to the proc in 5.6.7):

set QUOTED_IDENTIFIER ON
GO

... ALTER PROCEDURE [dbo].[DeletePortalDesktopModules]
@PortalID int,
@DesktopModuleId int
AS
BEGIN
IF @PortalID is not null AND @DesktopModuleId is not null
DELETE FROM dbo.PortalDesktopModules WHERE PortalId = @PortalID AND DesktopModuleId = @DesktopModuleId
IF @PortalID is not null AND @DesktopModuleId is null
DELETE FROM dbo.PortalDesktopModules WHERE PortalId = @PortalID
IF @DesktopModuleId is not null AND @PortalID is null
DELETE FROM dbo.PortalDesktopModules WHERE DesktopModuleId = @DesktopModuleId
END

 
New Post
6/15/2012 8:07 PM
 

Mike;

This stored procedure was re-written for 6.2.0 and the scenario you describe no longer reproduces.

Your bug, http://support.dotnetnuke.com/issue/V... , has been marked as not reproducible in 6.2.0 and 6.2.1


Ken Grierson
DotNetNuke Corporation
Test Lead
 
New Post
6/21/2012 3:30 PM
 

Ken,

I'm aware that the issue has been resolved in DNN6.

I'm asking if it can be fixed in DNN 5.  I reported the bug AND one possible solution a couple of months before the most recent DNN 5x release.

 
New Post
6/21/2012 3:35 PM
 

As a follow-up: The bad code was introduced in DNN 5.6.2, and subsequent versions.

It looks like it was an attempt to cleanup some SQL for performance issues, while inadvertently BREAKING the ability to remove an Assigned module.

It's in the 05.06.02.SqlDataProvider.

 
New Post
6/21/2012 5:46 PM
 

Mike;

We are about to release the final 5.6.x packages this month.

Our "sunset" or "end of life" policy for 5.x is July 20, 2012 as stated in Shaun Walker's blog posting here:http://www.dotnetnuke.com/Resources/B...

As such, we will not be fixing this issue for 5.6.x.

 

 


Ken Grierson
DotNetNuke Corporation
Test Lead
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DeletePortalDesktopModules stored procedureDeletePortalDesktopModules stored procedure


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