Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363737 - Mime type ignored from attribute with name "contentType" and uri is "http://www.w3.org/2005/05/xmlmime"
Summary: Mime type ignored from attribute with name "contentType" and uri is "http://w...
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: Blaise Doughan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 14:11 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:06 EDT (History)
1 user (show)

See Also:


Attachments
MOXy - Test Cases (16.51 KB, patch)
2011-11-14 14:13 EST, Blaise Doughan CLA
no flags Details | Diff
MOXy - Fix (1.50 KB, patch)
2011-11-14 14:14 EST, Blaise Doughan CLA
no flags Details | Diff
Core - Fix (4.91 KB, patch)
2011-11-14 14:23 EST, 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 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