Cannot successfully add item to generic collection

Bug #705779 reported by pjv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Collectionista
Incomplete
High
Unassigned
Alpha
Incomplete
High
Unassigned

Bug Description

You edit the item, but it is not actually added to the collection.

Revision history for this message
pjv (pjv) wrote :

Debug notes:

Nothing showing up in the logcat when failing to add item. Item is actually added to the db.

However there might be 2 reasons:
- pulling a db from under collectionista when running robotium tests -> SQLException. See monkey logs of 2011-02-09.
- TRIGGERS wrongly written and some queries are running into constraintss -> SQLException, see sqlite_triggers.sql.

Once a generic item has been added with empty name and empty text, all subsequent may not be shown possibly.

Noteworthy that even after killing app, and reloading list of items, it still does not show all, while they are actually in the db and ok, but with faulty ones amongst them.

Revision history for this message
pjv (pjv) wrote :

Experiments with "" (empty strings) and <null> do not reproduce this:

sqlite> SELECT * FROM items_generic;
_id|created|modified|subtype|name|text|image
1|1297375866315|1297375868395|/items/generic|A|A|2130837526
2|1297375548767|1297375548767|/items/generic|||2130837526 -> empty
3|1297376458397|1297376463616|/items/generic|C|C|2130837526
4|1297375548767|1297375548767|/items/generic|||2130837526 -> null

Revision history for this message
pjv (pjv) wrote :

Changed ABORT into ROLLBACK in triggers to see if that helps. Split out some other db related bugs.

Revision history for this message
pjv (pjv) wrote :

Not seen in a long time.

Changed in collectionista:
status: New → Incomplete
Changed in collectionista:
status: Incomplete → Opinion
status: Opinion → Incomplete
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.