You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-dev@httpd.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2003/12/10 20:26:00 UTC

limits.t and 400/413

hi all

t/apache/limits.t has one failure on Apache 1.3 - a chunked body that
exceeds the limits.  2.0/2.1 returns 413 (entity too large) while 1.3
returns 400 (bad request).

after looking at the code in 1.3 I think this is intentional -
ap_get_client_block specifically handles this condition, while the 2.0 tree
seems to handle it elsewhere.

furthermore, it seems people were aware of this at the time (over 2 years
ago) - the comments from version 1.4 are

	Whew!  Now tests upload chunking properly -- but Apache 1.3
	may be responding with a 400 when it should be a 413.  Many
	thanks to Doug MacEachern and Gisle Aas for their help with
	getting the HTTP/1.1 chunking stuff working.

so, at this point I'm convinced that 1.3 and 2.0 geniunely differ in this
respect.  so, assuming that this is a legacy behavior in 1.3 that will
probably never be addressed, here is a patch to set 1.3 expectations.  if
there are feelings that it should be marked as TODO, please let me know.

--Geoff