Bug 39115 - Deleting Link update global cache instead of transaction cache.
Summary: Deleting Link update global cache instead of transaction cache.
Status: NEW
Alias: None
Product: Slide
Classification: Unclassified
Component: Core (show other bugs)
Version: Nightly
Hardware: Other other
: P2 critical (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-27 11:37 UTC by Honor
Modified: 2006-03-27 03:37 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Honor 2006-03-27 11:37:57 UTC
When deleting a linkNode, the method deleteObject of ExtendedStore, update the
target object of the link by removing the to-be-deleted link from the list of links.
Extended store retrieve the object from the cache, but doesn't check if the
object is in transaction cache or global cache. If the target object has already
been modified in this transaction it is in the transaction cache and all goes
well, otherwise, the object is taken from the global cache and UPDATED. But when
in case of rollback, the global cache is not restored.

Conclusion: after a rolled back delete of a link, slide cache is no more
synchronized with the store.

Test: 
* create a node A
* create a link B to the node A
* [enumerate links of A] (result must be {'B'})
* begin transaction
* delete B
* [enumerate links of A] (result must be {})
* Rollback transaction
* [enumerate links of A] (result should be {'B'} but is {})