Incorrectly processing "If-Modified-Since" request header in zope.app.file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BlueBream |
New
|
Undecided
|
Unassigned | ||
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.app.file |
New
|
Undecided
|
Unassigned |
Bug Description
In function zope.app.
Value of file modification date calculate as:
>> lmt = zope.datetime.
type(lmt) == float
Value of date from Request Header "If-Modified-Since" calculate as:
>> mod_since = long(zope.
type(mod_since) == long
As a result - lmt almost always is more than mod_since on some milliseconds. For example:
lmt = 1243412922.51
mod_since = 1243412922
Doctest for zope.app.
I correct tests and code "zope.app.
affects: | bluebream → zope3 |
This bug should be tracked against the zope.app.file package, which is now released separately:
http:// pypi.python. org/pypi/ zope.app. file
There is (currently) no Launchpad project for that package.