[Zope-dev] Re: bug in Confera

Service Informatique CHSR chsrinfo@guetali.fr
Tue, 9 Mar 1999 09:31:30 +0400


Message en plusieurs parties et au format MIME.

------=_NextPart_000_0026_01BE6A0F.9CF1D260
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Oops, the previous patch is reversed...

Here is the good one

>Hello,
>
>I believe there is a bug in Confera: it sets a cookie that is
>hardcoded to last until 31-Dec-99.
>According to the spec, a cookie that is meant to last forever
>have to last until (currentdate+one year).
>Attached is a patch that adress that issue.
>
>CurrentDate+OneYear is computed with:
>
>e=(self.ZopeTime()+365).rfc822()
>
>However, as stated some time ago, this poses problem on computers
>where the timezone is odd (mine, for example. I had to patch DateTime.py)
>So, If the above expression raise an exception, I end up in using
>e='31-Dec-99 23:59:59 GMT'
>
>Regards, Jephte CLAIN
>
>

------=_NextPart_000_0026_01BE6A0F.9CF1D260
Content-Type: application/octet-stream;
	name="Confera-1.2.0-cookie.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="Confera-1.2.0-cookie.patch"

ZGlmZiAtdXIgbGliLm9yaWcvcHl0aG9uL1Byb2R1Y3RzL0NvbmZlcmEvQ29uZmVyYS5weSBsaWIv
cHl0aG9uL1Byb2R1Y3RzL0NvbmZlcmEvQ29uZmVyYS5weQotLS0gbGliLm9yaWcvcHl0aG9uL1By
b2R1Y3RzL0NvbmZlcmEvQ29uZmVyYS5weQlUdWUgTWFyICA5IDA5OjE5OjE2IDE5OTkKKysrIGxp
Yi9weXRob24vUHJvZHVjdHMvQ29uZmVyYS9Db25mZXJhLnB5CVR1ZSBNYXIgIDkgMDk6MjA6Mjkg
MTk5OQpAQCAtMzE0LDcgKzMxNCwxMCBAQAogICAgICAgICAgICAgcD0nJXMlcycgJSAoUkVRVUVT
VFsnU0NSSVBUX05BTUUnXSxSRVFVRVNUWydQQVRIX0lORk8nXSkKICAgICAgICAgICAgIHQ9c2Vs
Zi5pZAogICAgICAgICAgICAgcD1wWzo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