Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93C6110EA9 for ; Wed, 30 Oct 2013 19:43:39 +0000 (UTC) Received: (qmail 91741 invoked by uid 500); 30 Oct 2013 19:43:37 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 89590 invoked by uid 500); 30 Oct 2013 19:43:30 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 89383 invoked by uid 99); 30 Oct 2013 19:43:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 19:43:27 +0000 Date: Wed, 30 Oct 2013 19:43:27 +0000 (UTC) From: "Jesse Pangburn (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5367) 2.7.7 schema validation incorrectly detects schema include recursion MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13809516#comment-13809516 ] Jesse Pangburn commented on CXF-5367: ------------------------------------- I have tested the 2.7.8-SNAPSHOT against this test case and it works great! Thanks Dan! > 2.7.7 schema validation incorrectly detects schema include recursion > -------------------------------------------------------------------- > > Key: CXF-5367 > URL: https://issues.apache.org/jira/browse/CXF-5367 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.7.7 > Reporter: Jesse Pangburn > Labels: schema, validation > Fix For: 2.7.8 > > Attachments: jaxws_dispatch_provider_schematest_XDSb_276.zip, jaxws_dispatch_provider_schematest_XDSb_277.zip > > > With 2.7.7 it does validate schemas when configured correctly but fails with schemas that have circular references to each other (not illegal according to W3C spec or their schema validator tool online). The schemas it's having trouble with are from the HL7 standards body, which are used by hundreds of companies. I tested the schema that it complains about using the W3C online validator like this: > {quote} > http://www.w3.org/2001/03/webdata/xsv?docAddrs=http%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F13558558%2Fschematest%2Fschema%2FHL7V3%2FNE2008%2Fcoreschemas%2Fvoc.xsd&warnings=on&independent=on&style=xsl# > {quote} > It comes back and says (among many things): > {quote} > The schema(s) used for schema-validation had no errors > {quote} > I will attach two samples, one for 2.7.6 and one for 2.7.7. With 2.7.6, it validates correctly. With 2.7.7 it complains about a recursive reference. The problem it seems is that voc.xsd includes datatypes.xsd includes datatypes-base.xsd includes voc.xsd. The schema validator gets around to the recursive point and says: > {quote} > Attempt to load a schema document from http://dl.dropboxusercontent.com/u/13558558/schematest/schema/HL7V3/NE2008/coreschemas/voc.xsd (source: include) for no namespace, skipped, already loaded > {quote} > So the W3C validator sees the loop and knows its already been included so it ignores the recursion beyond the first loop. -- This message was sent by Atlassian JIRA (v6.1#6144)