Playing with CPM I've discovered that if I put a policy like: id: Files Predicate: python:content.portal_type == "File" Mod. time: content/modified Max age: 1
with all "noXXX" checked, I have weird behaviour: whenever I request '/file_view' method on file objects - everything works as expected, as soon as I use '/download' all the settings are discarded by CPM. Is it something I miss or is it a bug? (BTW I'm using older Plone 2.0.5 but just tested it with 2.5 and see same problem) Here are snippets of what I'm talking about: First the "ignore": (dimon2:~/tmp/2) dimon% wget --no-cache -S http://mysite.com/demo/Members/dimon/1800telephone.xls/download --17:21:47-- http://mysite.com/demo/Members/dimon/1800telephone.xls/download => `download' Resolving mysite.com... 10.10.10.1 Connecting to mysite.com|10.10.10.1|:80... connected. HTTP request sent, awaiting response... HTTP/1.1 200 OK Date: Tue, 12 Sep 2006 23:21:47 GMT Server: Zope/(Zope 2.7.8-final, python 2.3.4, linux2) ZServer/1.1 Plone/2.0.5 Content-Length: 45568 Content-Disposition: attachment; filename=1800telephone.xls Accept-Ranges: bytes Last-Modified: Tue, 12 Sep 2006 23:19:36 GMT Content-Type: application/vnd.ms-excel X-Cache: MISS from 10.10.10.1 Connection: close Length: 45,568 (44K) [application/vnd.ms-excel] Now everything is fine here: (dimon2:~/tmp/2) dimon% wget --no-cache -S http://mysite.com/demo/Members/dimon/1800telephone.xls/file_view --17:21:24-- http://mysite.com/demo/Members/dimon/1800telephone.xls/file_view => `file_view.1' Resolving mysite.com... 10.10.10.1 Connecting to mysite.com|10.10.10.1|:80... connected. HTTP request sent, awaiting response... HTTP/1.1 200 OK Date: Tue, 12 Sep 2006 23:21:24 GMT Server: Zope/(Zope 2.7.8-final, python 2.3.4, linux2) ZServer/1.1 Plone/2.0.5 Content-Length: 19549 Content-Language: Expires: Tue, 12 Sep 2006 23:21:25 GMT Last-Modified: Tue, 12 Sep 2006 22:40:46 GMT Pragma: no-cache Cache-Control: max-age=1, no-cache, no-store, must-revalidate Content-Type: text/html;charset=utf-8 X-Cache: MISS from 10.10.10.1 Connection: close Length: 19,549 (19K) [text/html] -- Dmitry Makovey Web Systems Administrator Athabasca University (780) 675-6245
pgpEx9N33Haft.pgp
Description: PGP signature
_______________________________________________ Zope-CMF maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
