Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: future release
    • Component/s: security
    • Labels:
      None
    • Environment:

      security-devtests-trunk

      Description

      The security-jmac-httpservlet test in the jmac security devtests suite is failing and has been disabled.

      The expected output includes an adjusted PrintWriter count that is not matching the golden files output.

      Otherwise the general behavior and functional output looks correct.

        Activity

        Hide
        Craig Perez added a comment -

        From examining the test case, the MyHttpServletResponseWrapper.java only overrides the method write(char[] cbuf, int off, int len) and the test currently outputs a count of 0 vs 218 along with the blank lines that are not lining up 1-1 as previously.

        Functionally the SAM is working but either the MyPrintWriter needs changes or the goldenfiles could be updated since the test will validate basic ServerAuthModule wrappering.

        [webtest] Expected Output ****************************************
        [webtest] Hello World from 196 HttpServlet AuthModule Test!
        [webtest] <hr>
        [webtest] Hello, shingwai123 from com.sun.s1asdev.security.jmac.httpservlet.HttpServletTestAuthModule
        [webtest] PC = security-jmac-httpservlet-web/security-jmac-httpservlet-web
        [webtest]
        [webtest]
        [webtest] <hr>
        [webtest] Adjusted count: 218
        [webtest]
        [webtest] ********************************************************
        [webtest] Actual Output ##########################################
        [webtest] Hello World from 196 HttpServlet AuthModule Test!
        [webtest] <hr>
        [webtest] Hello, shingwai123 from com.sun.s1asdev.security.jmac.httpservlet.HttpServletTestAuthModule
        [webtest] PC = security-jmac-httpservlet-web/security-jmac-httpservlet-web
        [webtest]
        [webtest] <hr>
        [webtest]
        [webtest] Adjusted count: 0

        Show
        Craig Perez added a comment - From examining the test case, the MyHttpServletResponseWrapper.java only overrides the method write(char[] cbuf, int off, int len) and the test currently outputs a count of 0 vs 218 along with the blank lines that are not lining up 1-1 as previously. Functionally the SAM is working but either the MyPrintWriter needs changes or the goldenfiles could be updated since the test will validate basic ServerAuthModule wrappering. [webtest] Expected Output **************************************** [webtest] Hello World from 196 HttpServlet AuthModule Test! [webtest] <hr> [webtest] Hello, shingwai123 from com.sun.s1asdev.security.jmac.httpservlet.HttpServletTestAuthModule [webtest] PC = security-jmac-httpservlet-web/security-jmac-httpservlet-web [webtest] [webtest] [webtest] <hr> [webtest] Adjusted count: 218 [webtest] [webtest] ******************************************************** [webtest] Actual Output ########################################## [webtest] Hello World from 196 HttpServlet AuthModule Test! [webtest] <hr> [webtest] Hello, shingwai123 from com.sun.s1asdev.security.jmac.httpservlet.HttpServletTestAuthModule [webtest] PC = security-jmac-httpservlet-web/security-jmac-httpservlet-web [webtest] [webtest] <hr> [webtest] [webtest] Adjusted count: 0

          People

          • Assignee:
            JeffTancill
            Reporter:
            Craig Perez
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: