Cannot remove user from role

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.
3/11/2009 9:31:19 AM
Gravatar
Total Posts 33

Cannot remove user from role

Hello!

I seem to be having an issue, it might be related to the fact that I've changed the authentication method a few times from Windows to Forms (trying to get "automatic login" to work but having problems, I'll handle it seperately from this thread though).

Right now, if I try to remove a user from the Administrators role, I get the following error:

Server Error in '/' Application.
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Specified cast is not valid.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidCastException: Specified cast is not valid.]
mojoPortal.Web.AdminUI.SecurityRoles.usersInRole_ItemCommand(Object sender, DataListCommandEventArgs e) +69
System.Web.UI.WebControls.DataList.OnItemCommand(DataListCommandEventArgs e) +108
System.Web.UI.WebControls.DataList.OnBubbleEvent(Object source, EventArgs e) +73
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.DataListItem.OnBubbleEvent(Object source, EventArgs e) +123
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +176
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

This also happens if I delete the role from the user itself in the Members list.

3/11/2009 10:03:18 AM
Gravatar
Total Posts 18439

Re: Cannot remove user from role

I cannot replicate this problem using MS SQL, what db platform are you using? 

3/11/2009 10:19:09 AM
Gravatar
Total Posts 33

Re: Cannot remove user from role

Oh sorry,

SQLite.

I opened the database using "SQLite Expert Personal" and manually deleted them for the moment.

I just tried re-adding a user to the Administrators role and then deleting it, it did it again. Keep in mind that I have "LDAP Authentication" enabled on the domain, I don't know if that changes anything (I also cannot "Delete" users, so maybe that's related?).

3/11/2009 10:36:48 AM
Gravatar
Total Posts 18439

Re: Cannot remove user from role

Ok, I was able to replicate the problem using SQLite. I have fixed it in my copy so it will be fixed in the next release.

Best,

Joe 

3/11/2009 11:32:47 AM
Gravatar
Total Posts 33

Re: Cannot remove user from role

Great support, that`s what I'm talking about! I'll look forward to the bug fix.

-Eric.

3/11/2009 2:33:45 PM
Gravatar
Total Posts 18439

Re: Cannot remove user from role

If you are working with the source code, its fixed in svn trunk now. Just do svn Update, then rebuild then visit /Setup/Default.aspx

Thanks for the bug report!

Cheers,

Joe

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