Application Server 3  4  5 and 6
  1. Application Server 3 4 5 and 6
  2. JBAS-7246 Track JBoss 6.0.0.M1 testsuite fixes/issues
  3. JBAS-7326

fix org.jboss.test.web.test.WebProgrammaticLoginTestCase(tomcat-sso).testSuccessfulLogin

    Details

    • Type: Sub-task Sub-task
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.0.0.M1
    • Component/s: Security, Test Suite
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 8 results 

      Activity

      Hide
      Shelly McGowan
      added a comment -

      Anil, do you have an update on this issue. We are preparing for our beta release.

      Show
      Shelly McGowan
      added a comment - Anil, do you have an update on this issue. We are preparing for our beta release.
      Hide
      Anil Saldhana
      added a comment -

      ==========
      (09:46:35 AM) sguilhen: anil: ping.. the WebAuthTest is failing because of a NPE thrown by the code that sets the sso cookie in the response. The response obtained by the WebAuthentication when it calls ActiveRequestResponseCacheValve.activeRespose.get() is null
      ================

      Show
      Anil Saldhana
      added a comment - ========== (09:46:35 AM) sguilhen: anil: ping.. the WebAuthTest is failing because of a NPE thrown by the code that sets the sso cookie in the response. The response obtained by the WebAuthentication when it calls ActiveRequestResponseCacheValve.activeRespose.get() is null ================
      Hide
      Stefan Guilhen
      added a comment -

      Added code to JaccContextValve that sets the response in the ActiveRequestResponseCache, just as it does with the request object. Test now pass:

      [sguilhen@BLACKBIRD testsuite]$ ant one-test -Dtest=org.jboss.test.web.test.WebProgrammaticLoginTestCase
      Buildfile: build.xml

      one-test:
      [delete] Deleting: /opt/workspace-jboss/jbossas-b5x/testsuite/output/log/test.log
      [junit] WARNING: multiple versions of ant detected in path for junit
      [junit] jar:file:/opt/development-tools/apache-ant-1.7.1/lib/ant.jar!/org/apache/tools/ant/Project.class
      [junit] and jar:file:/opt/workspace-jboss/jbossas-b5x/tools/lib/ant.jar!/org/apache/tools/ant/Project.class
      [junit] Running org.jboss.test.web.test.WebProgrammaticLoginTestCase
      [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 5.006 sec

      BUILD SUCCESSFUL
      Total time: 9 seconds

      Show
      Stefan Guilhen
      added a comment - Added code to JaccContextValve that sets the response in the ActiveRequestResponseCache, just as it does with the request object. Test now pass: [sguilhen@BLACKBIRD testsuite] $ ant one-test -Dtest=org.jboss.test.web.test.WebProgrammaticLoginTestCase Buildfile: build.xml one-test: [delete] Deleting: /opt/workspace-jboss/jbossas-b5x/testsuite/output/log/test.log [junit] WARNING: multiple versions of ant detected in path for junit [junit] jar: file:/opt/development-tools/apache-ant-1.7.1/lib/ant.jar!/org/apache/tools/ant/Project.class [junit] and jar: file:/opt/workspace-jboss/jbossas-b5x/tools/lib/ant.jar!/org/apache/tools/ant/Project.class [junit] Running org.jboss.test.web.test.WebProgrammaticLoginTestCase [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 5.006 sec BUILD SUCCESSFUL Total time: 9 seconds

        People

        • Assignee:
          Stefan Guilhen
          Reporter:
          Dimitris Andreadis
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: