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 DF27710CFE for ; Thu, 23 Jan 2014 21:17:40 +0000 (UTC) Received: (qmail 71486 invoked by uid 500); 23 Jan 2014 21:17:39 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 71374 invoked by uid 500); 23 Jan 2014 21:17:39 -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 71246 invoked by uid 99); 23 Jan 2014 21:17:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jan 2014 21:17:38 +0000 Date: Thu, 23 Jan 2014 21:17:38 +0000 (UTC) From: "Rebecca Searls (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-5518) Setting SecurityConstants.STS_TOKEN_ACT_AS as string improper handling 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-5518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rebecca Searls updated CXF-5518: -------------------------------- Description: Using: cxf-tr-ws-security-2.7.8 The code in org.apache.cxf.ws.security.trust.AbstractSTSClient that handles Act_As as a string requires a fully compliant XML stmt like this, "eve" 807 if (isString) { 808 final Document doc = 809 StaxUtils.read(new StringReader((String) delegationObject)); The documentation does not make it clear that this is the requirement. In addition based upon existing uses of SecurityConstants it is expected that a simple name should be acceptable in the case, for example SecurityConstants.STS_TOKEN_ACT_AS, "bob" was: Using: cxf-tr-ws-security-2.7.8 The code in org.apache.cxf.ws.security.trust.AbstractSTSClient that handles Act_As as a string requires a fully compliant XML stmt like this, "eve" 807 if (isString) { 808 final Document doc = 809 StaxUtils.read(new StringReader((String) delegationObject)); The documentation does not make it clear that this is the requirement. In addition based upon existing uses of SecurityConstants it is expected that a simple name should be acceptable in the case, for example SecurityConstants.STS_TOKEN_ACT_AS, "bob" Affects Version/s: 3.0.0-milestone1 > Setting SecurityConstants.STS_TOKEN_ACT_AS as string improper handling > ---------------------------------------------------------------------- > > Key: CXF-5518 > URL: https://issues.apache.org/jira/browse/CXF-5518 > Project: CXF > Issue Type: Bug > Components: JAX-RS Security > Affects Versions: 3.0.0-milestone1, 2.7.8 > Reporter: Rebecca Searls > > Using: cxf-tr-ws-security-2.7.8 > The code in org.apache.cxf.ws.security.trust.AbstractSTSClient > that handles Act_As as a string requires a fully compliant XML > stmt like this, > "eve" > 807 if (isString) { > 808 final Document doc = > 809 StaxUtils.read(new StringReader((String) delegationObject)); > The documentation does not make it clear that this is the requirement. > In addition based upon existing uses of SecurityConstants it is expected > that a simple name should be acceptable in the case, for example > SecurityConstants.STS_TOKEN_ACT_AS, "bob" -- This message was sent by Atlassian JIRA (v6.1.5#6160)