Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332536 - Problem with default namespace declaration on ContentHandlerRecord
Summary: Problem with default namespace declaration on ContentHandlerRecord
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-12-14 11:08 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:23 EDT (History)
0 users

See Also:


Attachments
Proposed Fix (889 bytes, patch)
2010-12-14 13:23 EST, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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