Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-795

allow MockHttpServletRequest and MockExternalContext to support cookies

    Details

    • Type: Patch
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.1.6.GA
    • Fix Version/s: 1.1.7.CR1
    • Component/s: Tools
    • Labels:
      None

      Description

      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().

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gavin.king Gavin King
                  Reporter:
                  matt.drees Matt Drees
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: