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 3CB2C1883F for ; Thu, 17 Dec 2015 15:45:47 +0000 (UTC) Received: (qmail 21764 invoked by uid 500); 17 Dec 2015 15:45:47 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 21729 invoked by uid 500); 17 Dec 2015 15:45:47 -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 21413 invoked by uid 99); 17 Dec 2015 15:45:47 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2015 15:45:47 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ACE2F2C1F56 for ; Thu, 17 Dec 2015 15:45:46 +0000 (UTC) Date: Thu, 17 Dec 2015 15:45:46 +0000 (UTC) From: "Eirik Bjorsnos (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-6717) Live WSDL regression: Fails updating schemaLocation in catalog-imported schema 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-6717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eirik Bjorsnos updated CXF-6717: -------------------------------- Description: We noticed a regression related to live WSDL XSD import schemaLocation updates. The problem reproduces in 3.1.4 and 3.1.3, but not in 3.1.2. The scenario is as follows: * We have a contract-first WSDL HelloService.wsdl * HelloService.wsdl imports hello.xsd using a relative schemaLocation * hello.xsd imports hello-types.xsd using a catalog name / uri schemaLocation * hello-types.xsd imports hello-types-imported.xsd using a relative schemaLocation When we access http://localhost:8080/ws/hello?xsd=urn:xsd/hello-types.xsd, the reference to hello-types-imported.xsd is not updated. As a result of this, the WSDL is unreadable from an external client. In 3.1.3, the hello-types.xsd is presented like this: {code} {code} In 3.1.2, hellotypes.xsd was presented like this: {code} {code} Looking through the bug fixes for 3.1.3, I noticed CXF-6034. Could this regression be caused by changes related to that issue? I've created a stand-alone reproducing Maven project for this and put it on Github: https://github.com/eirbjo/cxf-6717-catalog-schemalocation How to reproduce: {code} git clone https://github.com/eirbjo/cxf-6717-catalog-schemalocation cd cxf-6717-catalog-schemalocation mvn clean install {code} This should cause the integration test CatalogImportIT to fail. Observing the issue manually: {code} mvn jetty:run {code} The open http://localhost:8080/ws/hello?xsd=urn:xsd/hello-types.xsd was: We noticed a regression live WSDL XSD import schemaLocation updates. The problem reproduces in 3.1.4 and 3.1.3, but not in 3.1.2. The scenario is as follows: * We have a contract-first WSDL HelloService.wsdl * HelloService.wsdl imports hello.xsd using a relative schemaLocation * hello.xsd imports hello-types.xsd using a catalog name / uri schemaLocation * hello-types.xsd imports hello-types-imported.xsd using a relative schemaLocation When we access http://localhost:8080/ws/hello?xsd=urn:xsd/hello-types.xsd, the reference to hello-types-imported.xsd is not updated. As a result of this, the WSDL is unreadable from an external client. In 3.1.3, the hello-types.xsd is presented like this: {code} {code} In 3.1.2, hellotypes.xsd was presented like this: {code} {code} Looking through the bug fixes for 3.1.3, I noticed CXF-6034. Could this regression be caused by changes related to that issue? I've created a stand-alone reproducing Maven project for this and put it on Github: https://github.com/eirbjo/cxf-6717-catalog-schemalocation How to reproduce: {code} git clone https://github.com/eirbjo/cxf-6717-catalog-schemalocation cd cxf-6717-catalog-schemalocation mvn clean install {code} This should cause the integration test CatalogImportIT to fail. Observing the issue manually: {code} mvn jetty:run {code} The open http://localhost:8080/ws/hello?xsd=urn:xsd/hello-types.xsd > Live WSDL regression: Fails updating schemaLocation in catalog-imported schema > ------------------------------------------------------------------------------ > > Key: CXF-6717 > URL: https://issues.apache.org/jira/browse/CXF-6717 > Project: CXF > Issue Type: Bug > Affects Versions: 3.1.3, 3.1.4 > Reporter: Eirik Bjorsnos > > We noticed a regression related to live WSDL XSD import schemaLocation updates. > The problem reproduces in 3.1.4 and 3.1.3, but not in 3.1.2. > The scenario is as follows: > * We have a contract-first WSDL HelloService.wsdl > * HelloService.wsdl imports hello.xsd using a relative schemaLocation > * hello.xsd imports hello-types.xsd using a catalog name / uri schemaLocation > * hello-types.xsd imports hello-types-imported.xsd using a relative schemaLocation > When we access http://localhost:8080/ws/hello?xsd=urn:xsd/hello-types.xsd, the reference to hello-types-imported.xsd is not updated. As a result of this, the WSDL is unreadable from an external client. > In 3.1.3, the hello-types.xsd is presented like this: > {code} > > {code} > In 3.1.2, hellotypes.xsd was presented like this: > {code} > > {code} > Looking through the bug fixes for 3.1.3, I noticed CXF-6034. Could this regression be caused by changes related to that issue? > I've created a stand-alone reproducing Maven project for this and put it on Github: https://github.com/eirbjo/cxf-6717-catalog-schemalocation > How to reproduce: > {code} > git clone https://github.com/eirbjo/cxf-6717-catalog-schemalocation > cd cxf-6717-catalog-schemalocation > mvn clean install > {code} > This should cause the integration test CatalogImportIT to fail. > Observing the issue manually: > {code} > mvn jetty:run > {code} > The open http://localhost:8080/ws/hello?xsd=urn:xsd/hello-types.xsd -- This message was sent by Atlassian JIRA (v6.3.4#6332)