>Number: 4920
>Category: mod_dir
>Synopsis: conditional requests (IMS, INM) for DirectoryIndex's are
>logged as 200 responses
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Sat Aug 28 05:10:01 PDT 1999
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.6
>Environment:
Linux 2.2.9 - Red Hat
gcc 2.7.2.3
>Description:
When a conditional (if-modified-since or if-none-match) request is made for
a DirectoryIndex (i.e., GET / , GET /foo/), it will be logged as a 200 response,
not a 304.
>How-To-Repeat:
1. configure Apache with mod_log_config and mod_dir
2. set a typical LogFormat -
LogFormat "%h %l %u %t \"%r\" %s %b \"%{referer}i\" \"%{user-agent}i\""
3. Make a manual request for an DirectoryIndex object - e.g.,
GET / HTTP/1.0
Note the ETag and Last-Modified served.
4. Try conditional requests using the above info - it will be logged as 200,
even though it is served as 304.
5. Now try it with the complete path to the underlying object (e.g.,
/index.html)
- it works fine.
>Fix:
not specifically.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <[EMAIL PROTECTED]> 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! ]