Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

bug in Confera

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


chsrinfo at guetali

Mar 8, 1999, 10:17 PM

Post #1 of 4 (331 views)
Permalink
bug in Confera

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
Attachments: Confera-1.2.0-cookie.patch (0.73 KB)


chsrinfo at guetali

Mar 8, 1999, 10:31 PM

Post #2 of 4 (327 views)
Permalink
Re: bug in Confera [In reply to]

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
>
>
Attachments: Confera-1.2.0-cookie.patch (0.79 KB)


mj at antraciet

Mar 9, 1999, 2:30 AM

Post #3 of 4 (326 views)
Permalink
Re: Re: bug in Confera [In reply to]

At 06:31 09/03/99 , Service Informatique CHSR wrote:
>>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'
>>

The same bug occurs in Zope as well. I had it on my TODO list to report it
=). Thanx for the patch.

BTW, emailing the default email message on 1.10.2 is also broken, and this
is my personal fault. I supplied DC with a patch to MailHost to make it
fully SMTP server compliant, and went a bit to far with making ALL messages
Quoted-Printable. As the Confera email message is a multipart message,
email programs will not decode it proerly. When I have time later this
week, I'll supply everyone with a new version of MailHost where quoting is
optional.

Anyone want to take up supporting Confera? I am thinking of doing so, but
will have to wait and see what role Zope is going to play within our
organisation. I'll have more on this next wednesday or thursday.


--
M.J. Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj [at] antraciet http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------


Brian at digicool

Mar 9, 1999, 1:21 PM

Post #4 of 4 (327 views)
Permalink
RE: Re: bug in Confera [In reply to]

> >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()

Ok - I've added this patch to Confera for 1.3.0.


Brian Lloyd brian [at] digicool
Software Engineer 540.371.6909
Digital Creations http://www.digicool.com

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.