OpenID + Gmail + Mange User = Bug ?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/18/2009 3:50:55 AM
Gravatar
Total Posts 37

OpenID + Gmail + Manage User = Bug ?

Hi,

I might have found another bug. One of my friends registered on my website using OpenId->Gmail account. Now when I want to Manage his account I get an error page. I have yesterday's afternoon trunk code deployed on my server.

 

Syslog for it:

-----------

2009-08-18 10:43:58,718 ERROR mojoPortal.Web.Global - 81.252.111.30-en-US - /Admin/ManageUsers.aspx?userid=6
System.FormatException: Invalid length for a Base-64 char array.
at System.Convert.FromBase64String(String s)
at mojoPortal.Web.mojoMembershipProvider.UnencodePassword(String pass, MembershipPasswordFormat passwordFormat)
at mojoPortal.Web.AdminUI.ManageUsers.PopulateControls()
at mojoPortal.Web.AdminUI.ManageUsers.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

------------

Przemek

8/18/2009 5:24:50 AM
Gravatar
Total Posts 18439

Re: OpenID + Gmail + Mange User = Bug ?

Hi,

This one was previously reported and is already fixed in svn trunk so it will be fixed in the new release coming soon.

Best,

Joe 

8/18/2009 5:34:16 AM
Gravatar
Total Posts 37

Re: OpenID + Gmail + Mange User = Bug ?

I have a trunk version from yesterday on my server and it still does happen. I redeployed the whole source code.

I'll check it again today in the evening if I have everything synced correctly.

 

Thanks,

Przemek

8/18/2009 5:39:04 AM
Gravatar
Total Posts 18439

Re: OpenID + Gmail + Mange User = Bug ?

Its not going to fix the bad data so the error will occur until you fix the bad data. Copy an encrypted password from another row into the bad rows so they can be decrypted then you can optionally update the passwords from the manage user page. The password is not involved in open id authentication but it must be present. Ther error happens because its trying to decrypt a password that is not encrypted. The bug was that when a user registered with open id or windows live the random password we generated was not being encrypted or hashed according to the site password format rules. This bug is fixed so it will not happen any more for new users who register via open id or windows live.

Hope it helps,

Joe 

8/18/2009 5:41:22 AM
Gravatar
Total Posts 37

Re: OpenID + Gmail + Mange User = Bug ?

You're right. :). It came to me after reading the other post.

Thanks,

Przemek

8/18/2009 6:01:18 AM
Gravatar
Total Posts 37

Re: OpenID + Gmail + Mange User = Bug ?

I just copied the password to the OpenId user directly in database -> managing that user is working just fine now.

 

Thanks Joe, :)

Przemek

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