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 DADCC10331 for ; Thu, 27 Nov 2014 02:32:12 +0000 (UTC) Received: (qmail 82801 invoked by uid 500); 27 Nov 2014 02:32:12 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 82764 invoked by uid 500); 27 Nov 2014 02:32:12 -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 82596 invoked by uid 99); 27 Nov 2014 02:32:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2014 02:32:12 +0000 Date: Thu, 27 Nov 2014 02:32:12 +0000 (UTC) From: "Thomas Whitmore (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CXF-6118) SchemaValidation IN on web-service wrongly set SchemaValidation IN on client 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-6118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14227165#comment-14227165 ] Thomas Whitmore edited comment on CXF-6118 at 11/27/14 2:31 AM: ---------------------------------------------------------------- See screenshots in root of folder particularly. was (Author: thomasw_nz): See screenshots in root of folder, particularly. > SchemaValidation IN on web-service wrongly set SchemaValidation IN on client > ---------------------------------------------------------------------------- > > Key: CXF-6118 > URL: https://issues.apache.org/jira/browse/CXF-6118 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.7.8 > Environment: Java 1.7.0_51, > Spring Framework 3.2.0, > Windows 7 > Reporter: Thomas Whitmore > Priority: Minor > Labels: client, operation, schema, validation > Attachments: problem example.zip > > > Disabling input schema-validation for my was unsuccessful following the docs. Neither 'false' nor 'NONE' were effective and the client (an integration test) was still validating & throwing exceptions. > Debugging the CXF code, I found Message.SCHEMA_VALIDATION_ENABLED being set to 'IN' by code in AbstractInDatabindingInterceptor.setOperationSchemaValidation(). This setting of 'IN' appears to be coming from the Service/ Endpoint definitions! > I had defined the service (LoanApplicationWS) as validating IN (by means of annotations). When I changed the service validation to NONE, client was no longer forced to validate. > There are two issues here: > 1) Service/Endpoint validation settings, should not automatically be overriding Client settings > 2) Service OUT validation corresponds to Client IN validation; the directions are inverted. > The background here, is to extend a service & schema designed for "complete" Loan Applications to be able to retrieve "draft" applications -- which are only partly-formed, and thus do not include some elements required in the schema. > For this reason, I intend to disable output validation of the Service; and correspondingly disable input validation at the Client. > However, CXF is somehow finding validation settings Service/Endpoint and applying them (in an incorrect directional sense) to the Client. > I've included screenshots of the Client 1) broken and 2) working, according to changes to the Service validation setting. > Please find a partial project attached containing a few relevant files & the screenshots. > Thanks, > Regards > Thomas -- This message was sent by Atlassian JIRA (v6.3.4#6332)