moudrick / rainbow

Automatically exported from code.google.com/p/rainbow
0 stars 0 forks source link

Error when working with user management after installation - Part II #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When the AdminEdit himself and change his Username
2.
3.

What is the expected output? What do you see instead?
Error :
System.Web.HttpUnhandledException: Exception of 
type 'System.Web.HttpUnhandledException' was thrown. ---> 
System.NullReferenceException: Object reference not set to an instance of 
an object. at Rainbow.Framework.Security.PortalSecurity.SignOut(String 
urlToRedirect, Boolean removeLogin) in D:\inetpub\RainbowPortal2.0.Beta1

What version of the product are you using? On what operating system?
version :RainbowPortal2.0.Beta1.7z
and
Version : rainbow - Revision 402: /NET_2_0/devint/trunk :
http://rainbow.googlecode.com/svn//NET_2_0/devint/trunk/

Please provide any additional information below.

because already in context there is the old username, and there is no data 
retrived when we ask for that old username that we changed it, it ( Guid 
userId = (Guid)user.ProviderUserKey;) will make an exception so we have to 
check before we say  Guid userId = (Guid)user.ProviderUserKey;

The fix attached for both versions:

**for RainbowPortal2.0.Beta1.7z the file called 
(Repository\Projects\Rainbow.Framework.Core\Security)

**for the dev trunk called (SignOnController.cs) inside 
(Engine\Rainbow.Framework\Security)
now working fine and tested

Original issue reported on code.google.com by GhalibGhniem on 22 Feb 2010 at 11:43

Attachments:

GoogleCodeExporter commented 9 years ago
fix committed for RainbowPortal2.0.Beta1.7z
https://rainbow.googlecode.com/svn/NET_2_0/stage/trunk
rev. 411 

Original comment by moudr...@gmail.com on 8 Mar 2010 at 6:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
fix committed for devint
https://rainbow.googlecode.com/svn/NET_2_0/devint/trunk
rev. 414 

Original comment by moudr...@gmail.com on 8 Mar 2010 at 9:13