[GLASSFISH-20337] security devtests jmac failure Created: 17/Apr/13  Updated: 24/Apr/14

Status: Open
Project: glassfish
Component/s: security
Affects Version/s: 4.0
Fix Version/s: future release

Type: Bug Priority: Major
Reporter: Craig Perez Assignee: JeffTancill
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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.



 Comments   
Comment by Craig Perez [ 17/Apr/13 ]

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

Generated at Sat Sep 05 09:17:48 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.