Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318357 - XMLDirectMapping fails to load data when unmapped elements exist in it's context
Summary: XMLDirectMapping fails to load data when unmapped elements exist in it's context
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 313545 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-29 13:19 EDT by Matt MacIvor CLA
Modified: 2022-06-09 10:23 EDT (History)
1 user (show)

See Also:


Attachments
Proposed Fix and Updated Test Case (3.02 KB, patch)
2010-06-29 13:21 EDT, Matt MacIvor CLA
no flags Details | Diff
Updated Patch with new test case (10.65 KB, patch)
2010-06-29 14:11 EDT, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt MacIvor CLA 2010-06-29 13:19:57 EDT
If an XMLDirectMapping is mapped with a grouping element, when unmarshalling an XML instance document that contains unmapped elements in the context of that grouping element, the XMLDirectMapping won't correctly process the data.

This is being caused by an issue with resetting the XPathNode on an UnmarshalRecord to it's parent node when the node was never incremented to a child node for unmapped content.
Comment 1 Matt MacIvor CLA 2010-06-29 13:21:37 EDT
Created attachment 173021 [details]
Proposed Fix and Updated Test Case
Comment 2 Matt MacIvor CLA 2010-06-29 14:11:55 EDT
Created attachment 173030 [details]
Updated Patch with new test case
Comment 3 Matt MacIvor CLA 2010-06-29 14:22:34 EDT
Attached patch checked in to SVN in 2.1 and 2.2 streams.
Comment 4 Matt MacIvor CLA 2010-06-29 14:28:07 EDT
*** Bug 313545 has been marked as a duplicate of this bug. ***
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:14:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:23:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink