perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kjetil Kjernsmo <kjet...@opera.com>
Subject Dealing with malformed cookies
Date Tue, 09 May 2006 09:30:38 GMT
Hi all!

We have seen a problem with server errors when getting malformed 
cookies. The problem has been seen before, we found from googling [1], 
but it is not clear how we should address this. We are not quite 
positive about the source of the malformed cookies, (it may have been 
only test code, it may have been old sins) but it seems like FF is 
sending them back as they were, while Opera makes an effort to make 
them valid. :-)

The problem then occurs if there is a malformed cookie in the jar, if 
any cookie is attempted to be read, libapreq2 dies.

First of all, is it the intended behavior that libapreq2 should die 
under these circumstances? If yes, are we supposed to deal with this by 
putting each read of a cookie in an eval block? 

I have seen that recent commits have added some error handling behavior. 
Is this going to be released soon? How would we use the error handling 
that is introduced?

Any other advice as to how we should deal with malformed cookies with 
libapreq2?

[1] 
http://mail-archives.apache.org/mod_mbox/perl-modperl/200601.mbox/%3c874q4eznlw.fsf@gemini.sunstarsys.com%3e

Cheers,

Kjetil
-- 
Kjetil Kjernsmo
Information Systems Developer
Opera Software ASA

Mime
View raw message