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 3F7B218C5B for ; Fri, 23 Oct 2015 14:58:28 +0000 (UTC) Received: (qmail 84329 invoked by uid 500); 23 Oct 2015 14:58:28 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 84230 invoked by uid 500); 23 Oct 2015 14:58:28 -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 84216 invoked by uid 99); 23 Oct 2015 14:58:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2015 14:58:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DFE912C1F6C for ; Fri, 23 Oct 2015 14:58:27 +0000 (UTC) Date: Fri, 23 Oct 2015 14:58:27 +0000 (UTC) From: "Alexandre Meyer (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-6652) can't sign SOAP header Signature "signature verification failed" 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-6652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexandre Meyer updated CXF-6652: --------------------------------- Description: When you configure Signature action: Map outProps = new HashMap(); outProps.put(WSHandlerConstants.ACTION,"Signature Encrypt Timestamp"); ... and SIGNATURE_PARTS ... outProps.put(WSHandlerConstants.SIGNATURE_PARTS, "{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp; " + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body; " + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}Action; " + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}To; " + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}ReplyTo; " + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}MessageID "); All works fine but the Signature element does not have any reference. Result: {code:xml} 2015-10-22T11:55:21.937Z 2015-10-22T12:00:21.937Z
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
.... ... ... ... ... ... ....... .... {code} But where is the reference to "SIG-ed19886d-2f14-4595-a815-8544867deae4"? was: When you configure Signature action: Map outProps = new HashMap(); outProps.put(WSHandlerConstants.ACTION,"Signature Encrypt Timestamp"); ... and SIGNATURE_PARTS ... outProps.put(WSHandlerConstants.SIGNATURE_PARTS, "{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp; " + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body; " + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}Action; " + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}To; " + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}ReplyTo; " + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}MessageID "); All works fine but the Signature element does not have any reference. Result: 2015-10-22T11:55:21.937Z 2015-10-22T12:00:21.937Z
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
.... ... ... ... ... ... ....... .... But where is the reference to "SIG-ed19886d-2f14-4595-a815-8544867deae4"? > can't sign SOAP header Signature "signature verification failed" > ---------------------------------------------------------------- > > Key: CXF-6652 > URL: https://issues.apache.org/jira/browse/CXF-6652 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 3.1.3 > Reporter: Alexandre Meyer > > When you configure Signature action: > Map outProps = new HashMap(); > outProps.put(WSHandlerConstants.ACTION,"Signature Encrypt Timestamp"); > ... > and SIGNATURE_PARTS > ... > outProps.put(WSHandlerConstants.SIGNATURE_PARTS, > "{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp; " > + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body; " > + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}Action; " > + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}To; " > + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}ReplyTo; " > + "{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}MessageID "); > All works fine but the Signature element does not have any reference. > Result: > {code:xml} > > 2015-10-22T11:55:21.937Z > 2015-10-22T12:00:21.937Z > > > > > >
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
>
> .... > > > > > > > > > > ... > > > > > > > ... > > > > > > > ... > > > > > > > ... > > > > > > > ... > > > ....... > > .... > > > {code} > But where is the reference to "SIG-ed19886d-2f14-4595-a815-8544867deae4"? -- This message was sent by Atlassian JIRA (v6.3.4#6332)