Received: (qmail 60681 invoked by uid 501); 4 Dec 2000 14:25:52 -0000 Message-Id: <20001204142552.60676.qmail@locus.apache.org> Date: 4 Dec 2000 14:25:52 -0000 From: Mark Hagger Reply-To: markh@webtop.com To: submit@bugz.apache.org Subject: HttpServletResponse.setStatus(int) not showing correct value in Apache logs X-Send-Pr-Version: 3.110 >Number: 6926 >Category: mod_jserv >Synopsis: HttpServletResponse.setStatus(int) not showing correct value in Apache logs >Confidential: no >Severity: serious >Priority: medium >Responsible: jserv >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Dec 04 06:30:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: markh@webtop.com >Release: 1.3.x >Organization: apache >Environment: i386 Linux (redhat-6.2, 7.0) kernels 2.2.16 and above. (at least on) Apache versions 1.3.12 and 1.3.14. Using Sun's jdk1.3 >Description: I have a java servlet which sets the response status whilst error handling, for 404's etc, this simply uses HttpServletResponse.setStatus(int). This all used to work fine under jserv-1.0 but since upgrading to jserv-1.1.2 I have noticed that whilst the status is correctly sent back to the requester, the apache logs no longer show the status as set by the setStatus, but instead always show response code 200. The only change here was upgrading jserv. FYI I have ErrorDocument handlers set for most of the usual error codes, which call a java servlet to produce an error page and set the status. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]