tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: ServletRequestListener and Expect-Header
Date Thu, 09 Jun 2011 16:13:42 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simon,

On 6/8/2011 1:47 PM, Simon Olofsson wrote:
> I have a ServletRequestListener that tries too access a Request Parameter:
>  sre.getServletRequest().getParameter("x");
> 
> When I send a POST-Request with the "Expect: 100-continue" HTTP Header
> it hangs waiting for the Request Body which isn't send because Tomcat
> didn't send a 100-continue Response. See the Stacktrace at [1]. This
> happens with a Tomcat built from SVN-Trunk.
> 
> This problem only occurs in a ServletRequestListener. Accessing a
> Request Parameter from a Servlet works, because the Request is
> acknowledged beforehand (StandardWrapperValve:176).
> 
> I would suggest to acknowledge the Request in
> catalina.connector.Request.parseParameters().
> 
> Any ideas or help with submitting a patch is greatly appreciated.

First, log a bug in bugzilla. Then, get a copy of the source code
through svn. Edit the code, build it and test it (TC7 is much easier to
build than earlier versions).

Use "svn diff" to generate a patch file and attach that to the bug once
you've got something working.

Thanks in advance for any contributions you may have.

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

iEYEARECAAYFAk3w8TYACgkQ9CaO5/Lv0PCTvgCght1KXfbE/PT0RsyEykwVpebU
Bs4An0w9PFrzh1rfIobqsB+m+Mz/V+wU
=us86
-----END PGP SIGNATURE-----

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


Mime
View raw message