Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3873 closed defect (fixed)

0.9: ItemFileWriteStore has identity bug with autocreation of identities

Reported by: Jared Jurkiewicz Owned by: skinner
Priority: high Milestone: 0.9
Component: Data Version: 0.9
Keywords: Cc:
Blocked By: Blocking:


0.9: ItemFileWriteStore? has identity bug with autocreation of identities

With how ItemFile? WriteStore? auto-creates identities for data sources that do not specify an identity, it will fail if there are deleteItem() calls followed by newItem() calls, as it depends on the length of the all items array as the identity to use for the new item.

Change History (2)

comment:1 Changed 14 years ago by skinner

Resolution: fixed
Status: newclosed

(In [9837]) fixes #3873 -- Bug in ItemFileWriteStore? that would show up when using a file that did not specify an identifier and then calling newItem() after calling deleteItem(). Changed deleteItem() to place null values in the _arrayOfAllItems, rather than removing elements from the array. Should also improve performance of deleteItem() and revert().

comment:2 Changed 14 years ago by skinner

Tested on Windows XP in:
  Firefox 2.0
  IE 6.0
  Safari B3
Note: See TracTickets for help on using tickets.