HTTPConnection: Firefox 3 stores cookies in sqlite database

Bug #192575 reported by Markus Korn
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs
Fix Released
Medium
Brian Murray

Bug Description

Firefox 3 stores cookies in a sqlite database, so the common practice for authentication
    Bug.authentication = /foo/bar/cookies.txt
won't work anymore.
We need to find a way to handle this new cookie format in py-lp-bugs.

As an external workaround I attach a script written by Kees Cook to convert cookies in the new format to the old one, thanks Kees!

Markus

Revision history for this message
Markus Korn (thekorn) wrote :
Changed in python-launchpad-bugs:
importance: Undecided → Medium
description: updated
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Proposed fix which when specifying a cookies file that ends with 'sqlite' will securely create a temporary file with the cookies extracted from sqlite, and uses cj.load() on this file. Cookies extraction based on Kees Cook's script.

Revision history for this message
Markus Korn (thekorn) wrote :

Thanks for your work on this, Jamie.
I will test it later today.

Markus

Revision history for this message
Brian Murray (brian-murray) wrote :

I've tested this using Firefox 2 and Firefox 3 and have been able to use cookies contained in either sqlite format files or in a plain text cookie file format.

Revision history for this message
Brian Murray (brian-murray) wrote :

I've merged jamie's branch with main revision number 76.

Changed in python-launchpad-bugs:
assignee: nobody → brian-murray
status: New → Fix Committed
Revision history for this message
Markus Korn (thekorn) wrote :

python-launchpad-bugs (0.2.28) hardy; urgency=low

  [ Markus Korn ]
  * created an examples/ directory and added some sample scripts
  * merged Martin Pitt's patch resolving a crash in bug attachment affecting
    the apport retracer (LP: #192892)

  [ Brian Murray ]
  * merged Markus's patch adding bzr branch attribute to a bug (LP: #196218)
  * added ability to filter on bugs with bzr branches to basebuglistfilter.py
  * to basebuglistfilter.py added URL filters for:
    - assignee, contact, commenter, subscriber, CVE (LP: #141388)

  [ Jamie Strandboge ]
  * handle firefox3 sqlite backend (LP: #192575) based on work by Kees Cook

 -- Brian Murray < <email address hidden>> Mon, 10 Mar 2008 15:12:56 -0700

Changed in python-launchpad-bugs:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.