Import or export broken in 1.9.2

Bug #1571805 reported by TKMankind on 2016-04-18
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cookiekeeper
Medium
Yvon TANGUY
1.9.0
Medium
Yvon TANGUY

Bug Description

Hello,

I try to export a copy of some of the rare "good" cookies, to make fresh Firefox profiles when required (especially after each major ESR release) and to store a backup.

The export function of Cookiekeeper 1.9.2 seems to work fine and I get the JSON file of all cookies, or the selected one, without problems. Notepad++ give me barely readable but judging by the look, functional files.

However, when I want to import them, it just don't work. I only get this error :

Import Error: File type not recognized

I don't have any explanation of that. I tried to import a file with all of them at once, and three another ones with only a selected one but different each time, just in case that a very specific cookie is responsible. All tests failed.

I tried too to import them after deletion of the cookies.sqlite file of the profile, and even without that just to see if rewriting was possible. All tests failed.

You will find a file in attachment with the cookie of Duckduckgo, so no sensible information is inside. I hope that you can find what is the problem.

Cordialy,

TKMankind (tkmankindv2) wrote :
description: updated
Yvon TANGUY (vono22) on 2016-04-19
Changed in cookiekeeper:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Yvon TANGUY (vono22)
Yvon TANGUY (vono22) on 2016-04-19
Changed in cookiekeeper:
milestone: none → r1.9.3
milestone: r1.9.3 → 1.10.0
Yvon TANGUY (vono22) wrote :

#1571805: Fix import cookies from json. An error was displayed for protected cookies.

Yvon TANGUY (vono22) on 2016-04-19
Changed in cookiekeeper:
status: Confirmed → Fix Committed
Yvon TANGUY (vono22) wrote :

Hi,

Thank you for this bug report.

It has been fixed, the example provided is now imported without error.
This fix will be implemented in CK 1.9.3, which I expect to release to addons.moz on 2016-04-29.
See https://launchpad.net/cookiekeeper/+milestone/r1.9.3

The file format is JSON, it is a standard text format. There is lots of websites which can make them easier to read, for example:
http://www.jsoneditoronline.org/

Yvon.

TKMankind (tkmankindv2) wrote :

Hello,

Happy to hear that you corrected it for the next release.

For the moment, as you stated that the problem concerned protected cookies (and indeed they were all protected in my files), I replaced the value of all "isProtected" statements by FALSE using the replace function of Notepad++. Faster than do it using the GUI.

The importation worked fine, and I protected them after that in a brand new cookies.sqlite.

I bookmark the URL for JSON files, it will be useful.

Cordialy,

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers