httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16521] - caches MUST treat invalid Expires values as in the past
Date Thu, 03 Jul 2003 15:17:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16521>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16521

caches MUST treat invalid Expires values as in the past





------- Additional Comments From rederpj@remulak.net  2003-07-03 15:17 -------
(Comments by Kris Verbeeck. Easier to find them if they are in the PR.  - Paul
J. Reder)


PR 16521 states that mod_cache caches and returns responses that have an invalid
Expires header (value is 0 or yesterday).  The attached patch resolves this issue.

Some explanation:
- when apr_date_parse_http returns APR_DATE_BAD, the local variable containing
the expires header was reset to NULL;
- the check a bit lower in the code:

    if (exps != NULL && exp == APR_DATE_BAD) {

would always fail because when exp equals APR_DATE_BAD, exps was always NULL.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message