NASTY BUG ALERT: .... partial object losing changes with setter on non-loaded property
7 views
Skip to first unread message
Rob Bygrave
unread,
Mar 24, 2010, 8:01:48 PM3/24/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ebean@googlegroups
This is bad news I'm afraid.
Eddie has found a bug with a scenario that we didn't have a unit test for.
Effectively you can lose some of your changes ...
1. -
partially load a bean 2. - modify the loaded properties (you will
lose these changes)
3. - modify a property that isn't loaded - this invokes
lazy loading for the extra properties - BUG: this resets
the loaded state of the bean so you lose the changes in step 2
4.
Now you have your bean ... but the only modified property is the Step 3
property
Unfortunately we didn't have a test case for this scenario which is my oversight. The good news is I'm off contract (working from home) so I have already reproduced it and got a fix in HEAD.
I'll be deploying a v2.5.1 release ASAP.
I have not confirmed which versions this effects yet but I suspect 2.5.0, 2.4.0 and 2.3.0. If you can't upgrade to v2.5.1 and need a fix backported let me know. I'll update this post as I make further progress.
Again, apologies for this awful bug.
- Rob.
Rob Bygrave
unread,
Mar 24, 2010, 9:32:26 PM3/24/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ebean ORM
I have deployed v2.5.1 which contains the fix to the maven repository.