Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6733711A57 for ; Wed, 16 Apr 2014 16:50:52 +0000 (UTC) Received: (qmail 34754 invoked by uid 500); 16 Apr 2014 16:50:45 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 34699 invoked by uid 500); 16 Apr 2014 16:50:45 -0000 Mailing-List: contact commits-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 commits@cxf.apache.org Received: (qmail 34631 invoked by uid 99); 16 Apr 2014 16:50:39 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 16:50:39 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 163EF93C057; Wed, 16 Apr 2014 16:50:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: coheigea@apache.org To: commits@cxf.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: Disable WS-Security schema validation by default Date: Wed, 16 Apr 2014 16:50:39 +0000 (UTC) Repository: cxf Updated Branches: refs/heads/master e46b89691 -> 253f87685 Disable WS-Security schema validation by default Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/253f8768 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/253f8768 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/253f8768 Branch: refs/heads/master Commit: 253f87685ae7d048b815937c158be9f4229baf7a Parents: e46b896 Author: Colm O hEigeartaigh Authored: Wed Apr 16 17:50:16 2014 +0100 Committer: Colm O hEigeartaigh Committed: Wed Apr 16 17:50:33 2014 +0100 ---------------------------------------------------------------------- .../cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/253f8768/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java ---------------------------------------------------------------------- diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java index c76a13e..68c13b3 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java @@ -171,6 +171,10 @@ public abstract class AbstractWSS4JStaxInterceptor implements SoapInterceptor, boolean mustUnderstand = MessageUtils.getContextualBoolean(msg, SecurityConstants.MUST_UNDERSTAND, true); securityProperties.setMustUnderstand(mustUnderstand); + + boolean validateSchemas = + MessageUtils.getContextualBoolean(msg, "schema-validation-enabled", false); + securityProperties.setDisableSchemaValidation(!validateSchemas); } private Collection convertCertConstraints(String certConstraints) {