Ticket #3873 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

0.9: ItemFileWriteStore has identity bug with autocreation of identities

Reported by: jaredj Owned by: skinner
Priority: normal Milestone: 0.9
Component: Data Version: 0.9
Severity: normal Keywords:
Cc:

Description

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

Changed 13 months ago by skinner

  • status changed from new to closed
  • resolution set to fixed

(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().

Changed 13 months ago by skinner

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