mutable variable and alive objects

Bug #553334 reported by Jürgen Kartnaller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Storm
Fix Released
Medium
Thomas Herve

Bug Description

When using objects containing mutable variables (Pickle, List) these objects don't detect changes if the object is in the alive list after a commit.
The attached file demonstrates this behavior. In line 88 I do a commit which doesn't update the object in the database.

The problem is that the variable for the pickle is not checkpointed if the object comes from the alive cache and is read using store.find(). If store.get() is used it works fine.

The mutable variable needs to be checkpointed in order to emit a "changed" event.

Related branches

Revision history for this message
Jürgen Kartnaller (jukart) wrote :
Revision history for this message
Thomas Herve (therve) wrote :

It seem it has been introduced with bug #334084. I'm trying to figure out what's going on. Thanks for the bug report!

Thomas Herve (therve)
Changed in storm:
assignee: nobody → Thomas Herve (therve)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Jürgen Kartnaller (jukart) wrote :

I tested this patch with my app and it seems to work now.

Thomas Herve (therve)
Changed in storm:
status: In Progress → Fix Committed
Jamu Kakar (jkakar)
Changed in storm:
milestone: none → 0.17
Jamu Kakar (jkakar)
Changed in storm:
status: Fix Committed → Fix Released
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.