-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chinmay,

On 2/19/2010 10:50 AM, Christopher Schultz wrote:
> Are you setting any headers in your app? Perhaps one of them is NULL.

I just checked, and this JSP does not trigger an error in TC 6.0.20:

- ---------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<%@ page
    pageEncoding="UTF-8"
    session="false"
    language="java"
%>
<%
 response.setHeader("test", null);
%>
Hello, world!
- ---------------------------------------

The response yields what one would expect:

> $ wget -S -O - http://localhost/HeaderTest.jsp
> --2010-02-19 10:58:12--  http://localhost/HeaderTest.jsp
> Resolving localhost... 127.0.0.1
> Connecting to localhost|127.0.0.1|:80... connected.
> HTTP request sent, awaiting response... 
>   HTTP/1.1 200 OK
>   Date: Fri, 19 Feb 2010 15:58:12 GMT
>   Server: Apache/2.2.9 (Debian) mod_jk/1.2.28 mod_ssl/2.2.9 OpenSSL/0.9.8g
>   test: 
>   Content-Length: 169
>   Vary: Accept-Encoding
>   Keep-Alive: timeout=15, max=100
>   Connection: Keep-Alive
>   Content-Type: text/html;charset=UTF-8
> Length: 169 [text/html]
> Saving to: `STDOUT'
> 
>  0% [                                       ] 0           --.-K/s             
>  <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> 
> 
> Hello, world!
> 100%[======================================>] 169         --.-K/s   in 0s     
>  
> 
> 2010-02-19 10:58:13 (9.35 MB/s) - `-' saved [169/169]
> 

In the output, there is a space after the "test:" header name, but no
value at all. This is what I would have expected.

Are you able to create a simple test that demonstrates this problem in a
repeatable way?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkt+teUACgkQ9CaO5/Lv0PADMQCcDuSgmRtiHvC51sd/XgudakJE
CWEAoJVeku70gP3CUCKipic7BKY4+BrU
=tG9m
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to