Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368067 - Not all schema locations are honored for some WSDLs
Summary: Not all schema locations are honored for some WSDLs
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: 3.2.5   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.2.5 P   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard: WI85663
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 17:42 EST by Nick Sandonato CLA
Modified: 2012-02-08 17:52 EST (History)
0 users

See Also:
thatnitind: review+


Attachments
patch (1.49 KB, patch)
2012-01-06 17:43 EST, Nick Sandonato CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Sandonato CLA 2012-01-06 17:42:15 EST
We need to solve the problem of respecting the XML -> XML Schema Files-> Honour All Schema Locations preference when validating Schemas.

The important thing here is that we invoke the validator using the signature validate(String, Inputstream, NestedValidatorContext).  The reason is because the XSD we want to validate may or may not be in the workspace.  When this method is called, the setupValidation method of org.eclipse.wst.xsd.core.internal.validation.eclipse.Validator class is not called and it is in that setupValidation method where the preference is set into the XSD Configuration object used by the validator.  This method is only called when invoking the method signature validator(IResource, int, ValidationState, IProgressMonitor).
Comment 1 Nick Sandonato CLA 2012-01-06 17:43:25 EST
Created attachment 209159 [details]
patch
Comment 2 Nick Sandonato CLA 2012-02-08 17:52:31 EST
Code checked in.