Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319403 - Thread safety issue with attachment handling
Summary: Thread safety issue with attachment handling
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:
Depends on:
Blocks:
 
Reported: 2010-07-09 11:17 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:29 EDT (History)
1 user (show)

See Also:


Attachments
Core - Fix (3.01 KB, patch)
2010-07-09 11:29 EDT, Blaise Doughan CLA
no flags Details | Diff
SDO - Fix (10.65 KB, patch)
2010-07-09 11:31 EDT, Blaise Doughan CLA
no flags Details | Diff
SDO - Test Cases (13.61 KB, patch)
2010-07-09 13:23 EDT, Blaise Doughan CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Blaise Doughan CLA 2010-07-09 11:17:49 EDT
There is an issue where a save can add too many attachments, or a load can have too few attachments.
Comment 1 Blaise Doughan CLA 2010-07-09 11:29:43 EDT
Created attachment 173872 [details]
Core - Fix

Added clone methods to XMLMarshaller & XMLUnmarshaller
Comment 2 Blaise Doughan CLA 2010-07-09 11:31:54 EDT
Created attachment 173874 [details]
SDO - Fix

- Added XMLHelper load options for attachment marshaller/unmarshaller
- Always get a new marshaller/unmarshaller (a clone of the one previously used)
- Options override anything set on the template unmarshaller (getXmlMarshaller()/getXmlUnmarshaller())
Comment 3 Blaise Doughan CLA 2010-07-09 13:23:53 EDT
Created attachment 173883 [details]
SDO - Test Cases
Comment 4 Blaise Doughan CLA 2010-07-12 10:17:59 EDT
Fix checked into 1.2.1 at rev:  7785
Fix checked into 2.0.3 at rev:  7786
Fix checked into 2.1.1 at rev:  7787
Fix checked into trunk at rev:  7788

Code reviewed by Matt MacIvor
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:29:56 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink