|
[
Permlink
| « Hide
]
Dain Sundstrom added a comment - 14/Aug/07 07:07 PM
This patch has overrides for all the failing tests that do nothing. These empty overrides must be removed to reproduce the bug.
> I believe this is a critical bug because when using a primitive
> field the system appears to work but the id field is always 0 > which could cause data corruption. I don't follow -- are you saying that you are seeing a data corruption problem? Note that OpenJPA will not assign an ID field until it needs to, so you should call flush() or em.getObjectId() before checking to see if an ID field has been provided. Marking as resolved under the assumption that the IDs are properly assigned as tested elsewhere.
> I don't follow -- are you saying that you are seeing a data corruption problem?
No. I said "could cause data corruption". Any improperly loaded field in a bean could cause data corruption simply because the data isn't 100% normalized. For example, someone could make a calculation using the primary key, which was improperly set to 0, and then store that calculation in another bean. > Note that OpenJPA will not assign an ID field until it needs to, so you should call flush() or em.getObjectId() before checking to > see if an ID field has been provided. Please review and apply this test. You may have already fixed the bug when fixing the other issues I committed, but I believe this is the only test for this specific issue. If you have already added another test for this bug, that is fine also but should be noted in this bug report for completeness. > Please review and apply this test.
What is "this test"? Are you referring to the patch associated with this issue? If so, how do the changes in http://svn.apache.org/viewcvs?view=rev&rev=567875 not resolve this issue? Note that if you hit the 'subversion commits' tab (or the 'all' tab) in the comments section, you'll see all commits associated with a particular JIRA issue. Also, from a process standpoint, it's fine to create test case patches that will cause the build to fail when they are applied; presumably, the person who grabs the patch and applies it expects to use the test case to validate that a fix works. Sorry. I was responding to your comment "Marking as resolved under the assumption that the IDs are properly assigned as tested elsewhere", which to me implied that you assumed there was already a test for this bug so my patch wasn't necessary. Again, sorry.
Issue has been resolved and a test has been added
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||