Not correctly processing "If-Modified-Since" in zope.app.file and z3c.blobfile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
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.
Value lmt has type float.
Value of date from Request Header "If-Modified-Since" calculate as:
>> mod_since = long(zope.
Value mod_since has type long.
As a result value lmt almost always is more than mod_since on some milliseconds. For example:
lmt = 1243412922.51
mod_since = 1243412922
--------------
My solution this problem
--------------
Necessary change line:
>> lmt = zope.datetime.
on:
>> lmt = long(zope.
PS: sorry for my english
description: | updated |
summary: |
- Not correctly processing "If-Modified-Since" in zope.app.file + Not correctly processing "If-Modified-Since" in zope.app.file and + z3c.blobfile |
Changed in zope3: | |
status: | New → Won't Fix |
https:/ /bugs.launchpad .net/zope. app.file/ +bug/537263