[JAXP-43] Exception while creating Schema object as it doesn't take care of inscope namespaces. Created: 09/Oct/07  Updated: 15/Oct/07  Resolved: 15/Oct/07

Status: Resolved
Project: jaxp
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Critical
Reporter: jitu Assignee: jaxp-issues
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All

Attachments: XML File hello_literal.wsdl     Java Source File ValidatorTest.java    
Issuezilla Id: 43


Schema object is created with DOMSource(from a fragment), but it doesn't
preserve inscope namespaces and throws an exception. Since the DOMSource is a
valid one, this should work. Adding sample test case that exhibits this behaviour.

Comment by jitu [ 09/Oct/07 ]

Created an attachment (id=11)
sample data file

Comment by jitu [ 09/Oct/07 ]

Created an attachment (id=12)
test case

Comment by Santiago Pericas-Geertsen [ 15/Oct/07 ]

A patch has been committed for this issue. The namespace support created by schema loader is now
initialized with the context of the node's ancestors. This allows a schema embedded in an another
document (such as a WSDL) to be properly loaded for validation.

Generated at Sun Feb 14 02:37:20 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.