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

Bug 332536

Summary: Problem with default namespace declaration on ContentHandlerRecord
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix none

Description Matt MacIvor CLA 2010-12-14 11:08:17 EST
In the namespaceDeclarations method on ContentHandlerRecord, when writing the default namespace declaration, the attribute method is called with 'xmlns' as the local name.

This triggers the record to call startPrefixMapping('xmlns', uri) on the nested content handler. This is incorrect. For the default namespace startPrefixMapping("", uri) should be called. This is causing a problem with marshal validation.
Comment 1 Matt MacIvor CLA 2010-12-14 13:23:00 EST
Created attachment 185154 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2010-12-14 14:53:18 EST
Attached patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:14:29 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:23:45 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink