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

Bug 368067

Summary: Not all schema locations are honored for some WSDLs
Product: [WebTools] WTP Source Editing Reporter: Nick Sandonato <nsand.dev>
Component: wst.xmlAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 Flags: thatnitind: review+
Version: 3.2.5   
Target Milestone: 3.2.5 P   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: WI85663
Attachments:
Description Flags
patch none

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.