Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368562

Summary: XmlAttribute values containing quotes fails to marshal properly to StringWriter
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: denise.mahar
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch - 2.3
none
Patch - 2.3 none

Description Rick Barkhouse CLA 2012-01-13 11:16:04 EST
If an XmlAttribute value contains quotes, marshalling to a StringWriter will fail to escape the quote characters.  This will result in the following error when trying to unmarshal the xml:

[Fatal Error] :2:62: Element type "ns0:root" must be followed by either attribute specifications, ">" or "/>".
Comment 1 Rick Barkhouse CLA 2012-01-13 11:52:06 EST
Created attachment 209467 [details]
Patch - 2.3
Comment 2 Rick Barkhouse CLA 2012-01-13 12:00:13 EST
Created attachment 209468 [details]
Patch - 2.3
Comment 3 Rick Barkhouse CLA 2012-01-13 14:11:27 EST
Fixed and checked in to 2.3 and trunk.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:31:17 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink