Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370379 - 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: All All
: P3 normal (vote)
Target Milestone: 3.2.5 P   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard: WI87442
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-01 16:45 EST by Nick Sandonato CLA
Modified: 2012-02-08 17:52 EST (History)
0 users

See Also:


Attachments
patch (1.49 KB, patch)
2012-02-01 16:46 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-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.