[jcifs] Logon dialog after authentication fails

Michael B Allen mba2000 at ioplex.com
Mon Oct 3 17:38:10 GMT 2005


On Mon, 3 Oct 2005 13:13:42 -0400
"Blank, Gregory" <gregory.blank at citigroup.com> wrote:

> Actually, I found an explanation of this problem on this very mailing list:
> http://lists.samba.org/archive/jcifs/2003-May/002188.html
> 
> Whether it is a bug in Tomcat or not, changing the order of setStatus() and setContentLength() does the trick.
> 
> Lines 208-209 in NtlmHttpFilter, 
> from:
> resp.setContentLength(0); /* Marcel Feb-15-2005 */
> resp.setStatus( HttpServletResponse.SC_UNAUTHORIZED );
> to:
> resp.setStatus( HttpServletResponse.SC_UNAUTHORIZED );
> resp.setContentLength(0); /* Marcel Feb-15-2005 */

Interesting. We'll try this change in the next release.

Thanks,
Mike


More information about the jcifs mailing list