Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331476 - DOMReader reporting too many endPrefixMapping events
Summary: DOMReader reporting too many endPrefixMapping events
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-11-30 16:37 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:32 EDT (History)
1 user (show)

See Also:


Attachments
Core - Fix (645 bytes, patch)
2010-11-30 16:40 EST, Blaise Doughan CLA
no flags Details | Diff
MOXy - Test Cases (22.82 KB, patch)
2010-12-01 16:54 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 2010-11-30 16:37:53 EST
When a document is created from the XML fragment below a endPrefixMapping event is being called for each attribute.  This can cause problems for the ContentHandler receiving the events.

<?xml version="1.0" encoding="UTF-8"?>
<td:root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:td="foo"
    xsi:schemaLocation="foo foo.xsd"
    a="0"
    b="1"
    c="2"
    d="3"
    e="4"
    f="5"
    g="6"
/>
Comment 1 Blaise Doughan CLA 2010-11-30 16:40:00 EST
Created attachment 184190 [details]
Core - Fix
Comment 2 Blaise Doughan CLA 2010-12-01 16:54:11 EST
Created attachment 184309 [details]
MOXy - Test Cases
Comment 3 Blaise Doughan CLA 2010-12-02 09:38:26 EST
Fix checked into trunk at rev:  8600

Code reviewed by:  David McCann

Now DOMReader properly checks that the attribute name is "xmlns" and not just not null before calling endPrefixMapping.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:32:41 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink