[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-820) CLONE -allow MockHttpServletRequest and MockExternalContext to support cookies

Mariusz Smykula (JIRA) jira-events at lists.jboss.org
Mon Feb 12 04:32:29 EST 2007


CLONE -allow MockHttpServletRequest and MockExternalContext to support cookies
------------------------------------------------------------------------------

                 Key: JBSEAM-820
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-820
             Project: JBoss Seam
          Issue Type: Patch
          Components: Tools
    Affects Versions: 1.1.6.GA
            Reporter: Mariusz Smykula
         Assigned To: Gavin King
            Priority: Minor
             Fix For: 1.1.7.GA


After updating to 1.1.6 and using Seam/Security authentication, my login integration test failed with a NPE:

java.lang.NullPointerException
	at org.jboss.seam.core.Selector.getCookieValue(Selector.java:59)
	at org.jboss.seam.security.Identity.initCredentialsFromCookie(Identity.java:91)
	at org.jboss.seam.security.Identity.create(Identity.java:85)
	...
	at org.uscm.crs.test.LoginTest.testLogin(LoginTest.java:25)

The root cause is the MockExternalContext always returned null for getRequestCookieMap().  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list