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...7.2.1-> 7.2.2 upgrade fails creating index7.2.1-> 7.2.2 upgrade fails creating index
Previous
 
Next
New Post
4/6/2014 3:01 PM
 
am affraid i just created an account on that site but can only search issues not create one - maybe am just not seeing the correct place

Regards Luís Rodrigues
 
New Post
4/7/2014 2:35 AM
 
The duplicate row happened for sure by an accident, however, I've learned to pre-run a "delete duplicates" statement prior to each creation of unique keys.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/7/2014 7:18 AM
 

I don't think the existence of a duplicate was na acceident

the new índex created in 7.2.2 restricts further the contents of the table by using unique against the columns ModuleID, PermissionID, RoleID, UserID. Before it was possible to have that group multiple times (like one per portal - or as in my case one without a portal (deleted?)) - now this new índex prevents that - so to have the same module in different portals unless a different userid is connected to it.

Oddly enough, in my case, all userid in the table are null for some reason - likely null means all users have this permission


Regards Luís Rodrigues
 
New Post
4/7/2014 12:25 PM
 
each module is portal specific - any duplicate in this key is caused a bug.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/7/2014 12:59 PM
 

After deleting that one entry to fix the uniqueness issue i still have 3 entries for that moduleID

Remember we're talking about the dbo.ModulePermissions table and not the dbo.Modules table. (unless the dbo.Modules table doesn't hold want i think it does, and every time i had say HTML module, it gets a new ID - if so the below assumption isn't quite correct)

There's no reason a single module can't have multiple permissions even on the same portal (let alone different portals)

ex: module with edit permissons for role X and for user Y - that would be two permissions rows as far i understand it - one rwo permiting role X to edit and one row permiting user y (that for some reason isn't in role X) to edit. Then i could even add a 3rd permission allowing all users to view the module. - So there even in a single portal our module already has 3 permission lines.

With the new índex that should be ok - but in my case i had the module in, then for some reason it was deleted from the page (but still remained in the recycle bin) than was added again, and BAM - 2 entries with the same values and with the new índex a uniqueness issue.

in my case - 494, 1, 0, <null> - am assuming permissionsID 1 is view so for module 494 si had two entries allowing everyone to see module with ID 494 xecept one was in portal 0 and the other had <null> as portalID.

 


Regards Luís Rodrigues
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...7.2.1-> 7.2.2 upgrade fails creating index7.2.1-> 7.2.2 upgrade fails creating index


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