cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo Kraan (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-3917) Schema validation does not resolve relative schema locations
Date Wed, 16 Nov 2011 12:32:52 GMT

     [ https://issues.apache.org/jira/browse/CXF-3917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pablo Kraan updated CXF-3917:
-----------------------------

    Attachment: cxfRelativeSchemaValidation.patch

Patch that fixes the problem
                
> Schema validation does not resolve relative schema locations
> ------------------------------------------------------------
>
>                 Key: CXF-3917
>                 URL: https://issues.apache.org/jira/browse/CXF-3917
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.1
>            Reporter: Pablo Kraan
>         Attachments: cxfRelativeSchemaValidation.patch
>
>
> Relative schema location works OK when schema validation is not enabled, but when is
enabled the validator is not able to properly resolve the relative schema locations.
> The problem is simple: the ResolvingGrammarReaderController does not try to resolve the
relative schema files, it just returns null every time is invoked, so the relative schema
files are not resolved using the WSDL base path, they are attempted to be resolved using the
base path of the running application. The fix is just to pass the base URI and use a URIResolver
to resolve the entities.
> We are using CXF inside Mule and I have no experience working with CXF alone, so I don't
have a way to reproduce this and the wstx-msv-validation module does not have any test that
I can use as an example... but the fix was tested from our side and works :)
> NOTE: the problem was detected using CXF 2.3.1 but the relevant code in trunk is still
the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message