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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Role integrity in modulesRole integrity in modules
Previous
 
Next
New Post
3/21/2007 5:29 AM
 

Hello


I see that alot modules (Forum for example) that store their roles in the database in next the manner: "Registered Users;" Doesn't the integrity of the database come in danger? Say i make a role "Test" I assign the role to the Forum and then delete it within DotNetNuke ? The string stays there till the next update. And for the sake of space why store it in as string and not as an Id ? Is this because the import/export feature ?


Currently I'm designing my own module, and in my ERD design i have a link table (M:N) between my main module table and the DotNetNuke Role table (i also implemented foreign key's). I normalized the Design and the Rle1;Role2;Role3 does not fit in this picture.


| ID       |   RoleID         | Name               |

 
New Post
3/21/2007 9:59 AM
 
Yes, what you are describing does represent a poor database design. The structure of the data should be indeed normalized as you are indicating.

Why is it not already that way? I have no idea. The developer could not have known better, there may be performance reasons for the de-normalization. In any software project some of these problems always creep in, and in open-source projects they seem to be more prolific.

Since you seem to have already done some research into this, I'd like to ask that you create an issue over on Gemini (at support.dotnetnuke.com) to correct this oversight. Include as much detail as possible (and where possible, include code to correct the problem) to maximize the changes of this being corrected. Hopefully it will :)

Brandon

Brandon Haynes
BrandonHaynes.org
 
New Post
3/22/2007 2:10 AM
 

Frankly the entire roles system is a bit of a mess - as of 4.4.1

- Im kinda hoping that come 4.5 we will see some much needed cleanup in this area.

Having spent a whole lot of time messing around inside the roles area - database norminalisation is only a small part of things ...

The bigger problem as I see it currently is the caching issues that lead to stupid situations like the USER.Roles() propertly never being hydrated UNLESS you are looking at the current logged on user - and then only AFTER the signin page has redirected.

Or the fact that you cannot change the roles a user is assigned - while that user is logged on.
Currently - a user much log off - and physically log back on BEFORE any roles changes are reflected into the menu items that are displayed and the pages that a user can access.

Westa

 

 
New Post
3/22/2007 8:31 AM
 
Yeah the issues you have described could use some love. I can only hope that they are consequences of the asp.net role provider being shoehorned into the DNN universe as quickly as it was. I pointed out awhile ago that the membership provider is never notified when a user is logged off.

I'm a big fan of the asp.net role provider being use in DNN, but it could certainly use some cleaning up. I bet it will as time goes on we'll see that happen.

I noticed a lot of similar nonsense going on with the exception management framework, and the core team has been reasonably receptive to my design suggestions after I logged them in Gemini. Have you done the same with your membership issues? If not, it would be great if you would. Providing code to rectify the problem greatly increases the chances of the problem being corrected (as you may well already know).

Brandon

Brandon Haynes
BrandonHaynes.org
 
New Post
3/22/2007 8:52 AM
 

Once I finally get to the bottom of the key issues

- then I will be doing just that -

Westa

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Role integrity in modulesRole integrity in modules


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