hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Moore (JIRA)" <j...@apache.org>
Subject [jira] Created: (HTTPCLIENT-987) cache module does not recognize equivalent URIs
Date Sat, 04 Sep 2010 21:42:33 GMT
cache module does not recognize equivalent URIs

                 Key: HTTPCLIENT-987
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-987
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: Cache
    Affects Versions: 4.1 Alpha2
            Reporter: Jonathan Moore


"When comparing two URIs to decide if they match or not, a client SHOULD use a case-sensitive
octet-by-octet comparison of the entire URIs, with these exceptions:
  * A port that is empty or not given is equivalent to the default port for that URI-reference;
  * Comparisons of host names MUST be case-insensitive;
  * Comparisons of scheme names MUST be case-insensitive;
  * An empty abs_path is equivalent to an abs_path of "/".
Characters other than those in the "reserved" and "unsafe" sets (see RFC 2396 [42]) are equivalent
to their ""%" HEX HEX" encoding.

For example, the following three URIs are equivalent:

The current implementation does not canonicalize the URIs it uses for cache keys, and so is
missing potential cache hits. More importantly, though, required invalidations due to PUT/POST/DELETE
to a URI (as well as those mentioned in Location or Content-Location headers) may not occur
properly due to this bug.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message