FS#32963 - [luakit] Needs a rebuild to fix persistent cookie storage

Attached to Project: Community Packages
Opened by Corey Thompson (cmtptr) - Tuesday, 04 December 2012, 20:44 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Monday, 10 December 2012, 18:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Persistent cookie storage is broken using the community package. When I rebuild the package using ABS, it works. I guess some dependent ABI somewhere has changed and so this package needs a rebuild.

Additional info:
* 2012.09.13.r1-3
* standard config


Steps to reproduce:

$ rm -f ~/.local/share/luakit/cookies.db
$ luakit
# browse and login to the arch forums, making sure to check the "remember me" box
# exit luakit
$ sqlite3 ~/.local/share/luakit/cookies.db <<< ".dump"
# notice that the DB has no entries:

What it looks like empty:

PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE moz_cookies (
id INTEGER PRIMARY KEY,
name TEXT,
value TEXT,
host TEXT,
path TEXT,
expiry INTEGER,
lastAccessed INTEGER,
isSecure INTEGER,
isHttpOnly INTEGER
);
CREATE TRIGGER delete_old_cookie
BEFORE INSERT ON moz_cookies
BEGIN
DELETE FROM moz_cookies
WHERE (
host == new.host AND
path == new.path AND
name == new.name
);
END;
COMMIT;


What it should look like:

PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE moz_cookies (
id INTEGER PRIMARY KEY,
name TEXT,
value TEXT,
host TEXT,
path TEXT,
expiry INTEGER,
lastAccessed INTEGER,
isSecure INTEGER,
isHttpOnly INTEGER
);
INSERT INTO "moz_cookies" VALUES(14,'bbs','18831%7C88f4e7db88e429b331b7820110eaf20e4ff22fa5%7C1355862944%7C976630166498e5b0b11586a9c9162b69dd5280b6','bbs.archlinux.org','/',1355862944,1354653344634962,1,1);
CREATE TRIGGER delete_old_cookie
BEFORE INSERT ON moz_cookies
BEGIN
DELETE FROM moz_cookies
WHERE (
host == new.host AND
path == new.path AND
name == new.name
);
END;
COMMIT;
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Monday, 10 December 2012, 18:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  As Kevin pointed in comments, wait until Luakit will be moved from [community-testing] to [community].
Comment by Kevin (anonymous_user) - Wednesday, 05 December 2012, 00:32 GMT
Well there is currently luakit 2012.09.13.r1-4 in Community-Testing so you may want to wait for that.

Loading...