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

Bug 370379

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    
Version: 3.2.5   
Target Milestone: 3.2.5 P   
Hardware: All   
OS: All   
Whiteboard: WI87442
Attachments:
Description Flags
patch none

Description Nick Sandonato CLA 2012-02-01 16:45:20 EST
+++ This bug was initially created as a clone of Bug #368067 +++

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-02-01 16:46:26 EST
Created attachment 210411 [details]
patch
Comment 2 Nick Sandonato CLA 2012-02-08 17:52:40 EST
Code checked in.