Tested the PPA builds (tracker 3.7.1-1ubuntu0.1~ppa1, sqlite3
3.45.1-1ubuntu2.12~ppa2) on noble amd64. Packages were not installed: I
extracted libtracker-sparql-3.0-0 and libsqlite3-0 and loaded them via
LD_LIBRARY_PATH with the system tracker3 CLI, confirming the loaded
libraries with LD_DEBUG=libs. Each test used a fresh database (tracker3
endpoint -o nepomuk), then an insert, an fts:match query and a delete.

Fresh database:
- noble tracker + sqlite 2.8:        OK
- noble tracker + sqlite 2.9:        "ambiguous column name: ROWID" (the bug)
- PPA tracker   + sqlite 2.9:        OK
- PPA tracker   + sqlite 2.8:        OK
- noble tracker + sqlite 2.12~ppa2:  OK
- PPA tracker   + sqlite 2.12~ppa2:  OK
- noble tracker + sqlite 2.11 (noble-proposed): OK
- PPA tracker   + sqlite 2.11 (noble-proposed): OK

Problem: the PPA tracker does not migrate an existing v28 database.
Reproducer:

    D=$(mktemp -d)
    # with the current noble libtracker-sparql (creates a v28 database):
    timeout 5 tracker3 endpoint -d "$D" -o nepomuk
    tracker3 sparql -d "$D" -u -q 'INSERT DATA { <urn:a> a nfo:FileDataObject ; 
nfo:fileName "a" }'
    # then with the PPA libtracker-sparql on LD_LIBRARY_PATH:
    tracker3 sparql -d "$D" -u -q 'INSERT DATA { <urn:b> a nfo:FileDataObject ; 
nfo:fileName "b" }'
    tracker3 sparql -d "$D" -q 'SELECT ?f { ?f a nfo:FileDataObject }'

Results with the PPA tracker:
- sqlite 2.8 or 2.12~ppa2: the write succeeds, but PRAGMA user_version stays 
28. Every read-only open then fails with "Database version is too old: got 
version 28, but 29 is needed", also after further writes.
- sqlite 2.9: the write fails with the original "ambiguous column name: ROWID", 
the version stays 28, and read-only opens fail the same way.

So with sqlite 2.9 the patched tracker helps only on a fresh database,
and every affected user has an existing one. A copy of my real index
(about 11,800 files, created by noble tracker) behaved the same. I only
tested through the tracker3 CLI, not tracker-miner-fs-3, so the miner
may take a different open path that does run the migration.

sqlite 2.12~ppa2 worked with both the current and the PPA tracker on
fresh databases, and with the current tracker on my existing index, so
it looks like the lower-risk fix.

sqlite 2.11 from noble-proposed also worked with the current tracker on
my existing index, and resolves ROWID exactly like 2.8 ("SELECT ROWID
FROM v, b" with v a view gives "no such column: ROWID" on 2.8 and 2.11,
"ambiguous column name: ROWID" on 2.9). This was via LD_LIBRARY_PATH,
not an install from -proposed, so it is supporting evidence only, not
formal SRU verification.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174360

Title:
  3.45.1-1ubuntu2.9 regression: Tracker 3.7.1 updates fail with
  "ambiguous column name: ROWID"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/2174360/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to