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 60672E7F3 for ; Thu, 17 Jan 2013 10:56:16 +0000 (UTC) Received: (qmail 71830 invoked by uid 500); 17 Jan 2013 10:56:15 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 71499 invoked by uid 500); 17 Jan 2013 10:56:14 -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 71402 invoked by uid 99); 17 Jan 2013 10:56:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 10:56:13 +0000 Date: Thu, 17 Jan 2013 10:56:13 +0000 (UTC) From: "Colm O hEigeartaigh (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-4759) No security headers created for policy with no Binding assertion 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-4759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13556056#comment-13556056 ] Colm O hEigeartaigh commented on CXF-4759: ------------------------------------------ Have you actually tried that policy to see if it works? A special StaX based interceptor (UsernameTokenInterceptor) handles the case of UsernameToken policies that are not attached to a binding. See this test for example: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security-examples/src/test/java/org/apache/cxf/systest/wssec/examples/ut/UsernameTokenTest.java?view=markup http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security-examples/src/test/resources/org/apache/cxf/systest/wssec/examples/ut/DoubleItUt.wsdl?view=markup Colm. > No security headers created for policy with no Binding assertion > ---------------------------------------------------------------- > > Key: CXF-4759 > URL: https://issues.apache.org/jira/browse/CXF-4759 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.7.0 > Reporter: Paton Wong > Attachments: UsernameToken-Plain.xml > > > For instance if a SOAP service has a policy with a supporting token of UsernameToken without a TransportBinding, SymmetricBinding or AsymmetricBinding then CXF will not send any security header. > In PolicyBasedWSS4JOutInterceptorInternal.handleMessage, there is an attempt to create a dummy TransportBinding, when the policy itself had not specified a binding. However, without a TransportToken, the TransportBindingHandler will ignore any supporting tokens. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira