[BlueBream] Incorrectly processing "If-Modified-Since" in zope.app.file and z3c.blobfile

Baiju M baiju.m.mail at gmail.com
Mon Mar 8 19:58:19 EST 2010


On Tue, Mar 9, 2010 at 3:20 AM, Cykooz <cykooz at googlemail.com> wrote:
> zope/app/file/browser/file.py
>>>        header= self.request.getHeader('If-Modified-Since', None)
>>>        lmt = zope.datetime.time(modified.isoformat())
>>>        if header is not None:
>>>            header = header.split(';')[0]
>>>            try:    mod_since=long(zope.datetime.time(header))
>>>            except: mod_since=None
>>>            if mod_since is not None:
>>>                if lmt <= mod_since:
>>>                    self.request.response.setStatus(304)
>>>                    return ''
>>>        self.request.response.setHeader('Last-Modified',
>>>                                        zope.datetime.rfc1123_date(lmt))
>
> zope.datetime.time(header) - it is date of change of a file
> transferred from browser.
> It is compared to date of change of a file on a server - lmt.

Can you please write a test case to reproduce this issue ?
Please submit an issue in tracker also.
https://bugs.launchpad.net/bluebream

Regards,
Baiju M


More information about the bluebream mailing list