You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Jonathan Moore (JIRA)" <ji...@apache.org> on 2010/07/01 18:17:51 UTC
[jira] Created: (HTTPCLIENT-963) client cache does not respect
'Cache-Control: no-store' on requests
client cache does not respect 'Cache-Control: no-store' on requests
-------------------------------------------------------------------
Key: HTTPCLIENT-963
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-963
Project: HttpComponents HttpClient
Issue Type: Bug
Components: Cache
Affects Versions: 4.1 Alpha2
Reporter: Jonathan Moore
"The purpose of the no-store directive is to prevent the inadvertent release or retention of sensitive information (for example, on backup tapes). The no-store directive applies to the entire message, and MAY be sent either in a response or in a request. If sent in a request, a cache MUST NOT store any part of either this request or any response to it."
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2
The current implementation will incorrectly cache responses to requests containing 'Cache-Control: no-store'.
--
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
[jira] Commented: (HTTPCLIENT-963) client cache does not respect
'Cache-Control: no-store' on requests
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887489#action_12887489 ]
Oleg Kalnichevski commented on HTTPCLIENT-963:
----------------------------------------------
Hhhm. The second does not apply cleanly as well. Are you sure the diff was made against the latest snapshot? I am pretty sure # isSharedCache() has already been added to the CachingHttpClient.java by another patch of yours which I already checked in.
Index: httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingHttpClient.java
===================================================================
--- httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingHttpClient.java (revision 959977)
+++ httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingHttpClient.java (working copy)
@@ -612,4 +612,8 @@
return SUPPORTS_RANGE_AND_CONTENT_RANGE_HEADERS;
}
+ public boolean isSharedCache() {
+ return true;
+ }
+
}
Oleg
> client cache does not respect 'Cache-Control: no-store' on requests
> -------------------------------------------------------------------
>
> Key: HTTPCLIENT-963
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-963
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Jonathan Moore
> Attachments: no-store-requests-2.patch, no-store-requests.patch
>
>
> "The purpose of the no-store directive is to prevent the inadvertent release or retention of sensitive information (for example, on backup tapes). The no-store directive applies to the entire message, and MAY be sent either in a response or in a request. If sent in a request, a cache MUST NOT store any part of either this request or any response to it."
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2
> The current implementation will incorrectly cache responses to requests containing 'Cache-Control: no-store'.
--
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
[jira] Updated: (HTTPCLIENT-963) client cache does not respect
'Cache-Control: no-store' on requests
Posted by "Jonathan Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Moore updated HTTPCLIENT-963:
--------------------------------------
Attachment: no-store-requests-3.patch
Third time's a charm, hopefully. This patch is contributed with the permission of my employer.
> client cache does not respect 'Cache-Control: no-store' on requests
> -------------------------------------------------------------------
>
> Key: HTTPCLIENT-963
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-963
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Jonathan Moore
> Attachments: no-store-requests-2.patch, no-store-requests-3.patch, no-store-requests.patch
>
>
> "The purpose of the no-store directive is to prevent the inadvertent release or retention of sensitive information (for example, on backup tapes). The no-store directive applies to the entire message, and MAY be sent either in a response or in a request. If sent in a request, a cache MUST NOT store any part of either this request or any response to it."
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2
> The current implementation will incorrectly cache responses to requests containing 'Cache-Control: no-store'.
--
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
[jira] Commented: (HTTPCLIENT-963) client cache does not respect
'Cache-Control: no-store' on requests
Posted by "Jonathan Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887493#action_12887493 ]
Jonathan Moore commented on HTTPCLIENT-963:
-------------------------------------------
Ugh, I'll try again, sorry. :)
> client cache does not respect 'Cache-Control: no-store' on requests
> -------------------------------------------------------------------
>
> Key: HTTPCLIENT-963
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-963
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Jonathan Moore
> Attachments: no-store-requests-2.patch, no-store-requests.patch
>
>
> "The purpose of the no-store directive is to prevent the inadvertent release or retention of sensitive information (for example, on backup tapes). The no-store directive applies to the entire message, and MAY be sent either in a response or in a request. If sent in a request, a cache MUST NOT store any part of either this request or any response to it."
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2
> The current implementation will incorrectly cache responses to requests containing 'Cache-Control: no-store'.
--
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
[jira] Commented: (HTTPCLIENT-963) client cache does not respect
'Cache-Control: no-store' on requests
Posted by "Jonathan Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887375#action_12887375 ]
Jonathan Moore commented on HTTPCLIENT-963:
-------------------------------------------
Hi Oleg,
No problem, I'll regenerate it today.
Jon
> client cache does not respect 'Cache-Control: no-store' on requests
> -------------------------------------------------------------------
>
> Key: HTTPCLIENT-963
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-963
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Jonathan Moore
> Attachments: no-store-requests.patch
>
>
> "The purpose of the no-store directive is to prevent the inadvertent release or retention of sensitive information (for example, on backup tapes). The no-store directive applies to the entire message, and MAY be sent either in a response or in a request. If sent in a request, a cache MUST NOT store any part of either this request or any response to it."
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2
> The current implementation will incorrectly cache responses to requests containing 'Cache-Control: no-store'.
--
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
[jira] Updated: (HTTPCLIENT-963) client cache does not respect
'Cache-Control: no-store' on requests
Posted by "Jonathan Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Moore updated HTTPCLIENT-963:
--------------------------------------
Attachment: no-store-requests.patch
The attached patch resolves this issue, and is contributed to the ASF with the permission of my employer.
> client cache does not respect 'Cache-Control: no-store' on requests
> -------------------------------------------------------------------
>
> Key: HTTPCLIENT-963
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-963
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Jonathan Moore
> Attachments: no-store-requests.patch
>
>
> "The purpose of the no-store directive is to prevent the inadvertent release or retention of sensitive information (for example, on backup tapes). The no-store directive applies to the entire message, and MAY be sent either in a response or in a request. If sent in a request, a cache MUST NOT store any part of either this request or any response to it."
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2
> The current implementation will incorrectly cache responses to requests containing 'Cache-Control: no-store'.
--
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
[jira] Commented: (HTTPCLIENT-963) client cache does not respect
'Cache-Control: no-store' on requests
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885975#action_12885975 ]
Oleg Kalnichevski commented on HTTPCLIENT-963:
----------------------------------------------
Jon,
The patch does not apply cleanly to the SVN trunk. Would it be a big deal for you to rebuild it off the latest snapshot?
Oleg
> client cache does not respect 'Cache-Control: no-store' on requests
> -------------------------------------------------------------------
>
> Key: HTTPCLIENT-963
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-963
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Jonathan Moore
> Attachments: no-store-requests.patch
>
>
> "The purpose of the no-store directive is to prevent the inadvertent release or retention of sensitive information (for example, on backup tapes). The no-store directive applies to the entire message, and MAY be sent either in a response or in a request. If sent in a request, a cache MUST NOT store any part of either this request or any response to it."
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2
> The current implementation will incorrectly cache responses to requests containing 'Cache-Control: no-store'.
--
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
[jira] Resolved: (HTTPCLIENT-963) client cache does not respect
'Cache-Control: no-store' on requests
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCLIENT-963.
------------------------------------------
Fix Version/s: 4.1 Alpha3
Resolution: Fixed
Patch (take 3) checked in.
Oleg
> client cache does not respect 'Cache-Control: no-store' on requests
> -------------------------------------------------------------------
>
> Key: HTTPCLIENT-963
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-963
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Jonathan Moore
> Fix For: 4.1 Alpha3
>
> Attachments: no-store-requests-2.patch, no-store-requests-3.patch, no-store-requests.patch
>
>
> "The purpose of the no-store directive is to prevent the inadvertent release or retention of sensitive information (for example, on backup tapes). The no-store directive applies to the entire message, and MAY be sent either in a response or in a request. If sent in a request, a cache MUST NOT store any part of either this request or any response to it."
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2
> The current implementation will incorrectly cache responses to requests containing 'Cache-Control: no-store'.
--
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
[jira] Updated: (HTTPCLIENT-963) client cache does not respect
'Cache-Control: no-store' on requests
Posted by "Jonathan Moore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCLIENT-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Moore updated HTTPCLIENT-963:
--------------------------------------
Attachment: no-store-requests-2.patch
I've attached a rebuilt patch against trunk.
This patch is contributed to the ASF with the permission of my employer.
> client cache does not respect 'Cache-Control: no-store' on requests
> -------------------------------------------------------------------
>
> Key: HTTPCLIENT-963
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-963
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: Cache
> Affects Versions: 4.1 Alpha2
> Reporter: Jonathan Moore
> Attachments: no-store-requests-2.patch, no-store-requests.patch
>
>
> "The purpose of the no-store directive is to prevent the inadvertent release or retention of sensitive information (for example, on backup tapes). The no-store directive applies to the entire message, and MAY be sent either in a response or in a request. If sent in a request, a cache MUST NOT store any part of either this request or any response to it."
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2
> The current implementation will incorrectly cache responses to requests containing 'Cache-Control: no-store'.
--
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