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

Bug 363737

Summary: Mime type ignored from attribute with name "contentType" and uri is "http://www.w3.org/2005/05/xmlmime"
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Blaise Doughan <blaise.doughan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
MOXy - Test Cases
none
MOXy - Fix
none
Core - Fix none

Description Blaise Doughan CLA 2011-11-14 14:11:10 EST
For binary mappings, if the domain object contains a field/property mapped to an attribute with local name "contentType" and uri "http://www.w3.org/2005/05/xmlmime" then the value of that field/property should be used for the mime type.
Comment 1 Blaise Doughan CLA 2011-11-14 14:13:42 EST
Created attachment 206975 [details]
MOXy - Test Cases
Comment 2 Blaise Doughan CLA 2011-11-14 14:14:00 EST
Created attachment 206976 [details]
MOXy - Fix
Comment 3 Blaise Doughan CLA 2011-11-14 14:23:50 EST
Created attachment 206981 [details]
Core - Fix
Comment 4 Blaise Doughan CLA 2011-11-15 10:05:10 EST
Fix checked into 2.3.2 at rev:  10390
Fix checked into trunk at rev:  10391

Code Reviewed By:  Matt MacIvor

Fix Details:
Modified FixedMimeTypePolioy to take the owning mapping.  This mapping is used to find a mapping that maps to the contentType attribute to get the supplied mime type.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:06:11 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink