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.0IS there any limit on the No of Roles a user can Have ? DNN 4.5.2IS there any limit on the No of Roles a user can Have ? DNN 4.5.2
Previous
 
Next
New Post
12/10/2008 11:01 AM
 

Hello everyone,

I am having exactly the same issue ( I think...) , cleared all the cookies, temporary internet files, everything..I even logged this user (going to referr to him from now on as USER A) on different machines and the error persisted. After googling for this issue I found this thread and checked for the USER A's amount of roles and in fact he did have 42 roles associated. Before starting removing roles I went to check if there was any other user with such amount of roles. The answer was yes. There was another user (From now on referred as USER B) with 65 roles associated, but odly enough, USER B doesnt have any issue logging in. Both USER A and USER B use Internet Explorer 7 (Tried to user IE6 with USER A also but error persists). Recapping:

USER A
# of roles: 42
Cookies, temporary internet files deleted, History deleted? Yes
Browsers tested: Internet Explorer 6, Internet Explorer 7
Can login? No. Invalid value for 'encryptedTicket' parameter exception occurs.

USER B
# of roles: 65
Cookies, temp internet files deleted, History deleted? Yes
Browsers tested: Internet Explorer 7
Can login? Yes.

USER A and USER B have the largest amount of roles associated. they are respectively number #2 and #1 on the TOP # of roles associated.

As a side note, wich may have some relevance, we upgraded recently from DotNetNuke v1.0.10 to v4.8.4. Before we entered production phase, we asked all users to clear their browsers cache and cookies because during test phase we were having issues regarding encryption and bad data errors if a user previously logged in on the old portal and then on the new one (Wich was promptly solved just by deleting cookies and logging back on the new portal). This USER A, although, was on Maternity Leave from company and returned today and didnt follow the procedure of clearing cookies and cache before accessing the new portal. Although we cleared all cookies and cache when the error was reported, is there any chance something is being left behind and avoiding the resolution of the problem?

This is the only user in the whole company (around 500 logins) having this issue!

 
New Post
12/10/2008 11:13 AM
 

Sebastian Leupold wrote
 

no, there are no changes implemented or planned (AFAIK) for handling roles.

IMHO a site with thousands of roles needs a redign of concept.

I share a good portion of this opinion with Sebastian.  That many roles in a system typically leads to performance and administration issues.  I have found that often a slight refactoring of needs can reduce the needed numbers of roles.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
12/10/2008 11:40 AM
 

Hello again,

Regarding my previous post, I tried to remove a couple roles to the User A and the problem was solved. Its still weird that another user with an higher amount of roles can login perfectly fine...oh well, time to check with people in charge if its possible to have a "role merge" or some other kind of refactoring aproach on the application.

Cheers!

 

 
New Post
12/10/2008 1:06 PM
 

the issue is one of storage size - if the number of roles overflows the maximum size of the cookie then your login may not work as expected. As far as I can see, it does a truncation of the data, so if it truncates correctly your cookie "appears" to work ok - the list of roles are comma delimited so a list like "1,2,3,4" is fine but a list like "1,2," is not i.e. even though the first list has more roles as it does not end in a comma it's correctly delimited , whereas the second list fails as the final comma causes a null exception error. I suspect you'll find that your user with the large amount of roles is logged in correctly, but not all of their roles are preserved i.e. as far as dotnetnuke is concerned they may only be seeing something like 41 roles (as the other 24 of the original 65 are truncated)

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/10/2008 1:13 PM
 

It's not the number of roles, it is the length of the role names (all added together) that reach the limited size of the user cookie. If you have many DNN roles they should be as short as possible.

A simple fix might be to compress or zip up the string to use less space, then unzip it for use in the app. The most efficient refactoring would be to use bit fields (corresponding to roleIDs) which would limit the number of roles but be very efficient for role validation. For example, 16 bytes could store combinations of 128 different roles.

Without getting into security implications, you could add a checksum or hash sum byte to verify integrity.

 

 


Dwayne J. Baldwin
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IS there any limit on the No of Roles a user can Have ? DNN 4.5.2IS there any limit on the No of Roles a user can Have ? DNN 4.5.2


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