Return-Path: X-Original-To: apmail-ws-dev-archive@www.apache.org Delivered-To: apmail-ws-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AE197168 for ; Thu, 17 Nov 2011 15:33:14 +0000 (UTC) Received: (qmail 66511 invoked by uid 500); 17 Nov 2011 15:33:13 -0000 Delivered-To: apmail-ws-dev-archive@ws.apache.org Received: (qmail 66164 invoked by uid 500); 17 Nov 2011 15:33:12 -0000 Mailing-List: contact dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list dev@ws.apache.org Received: (qmail 66157 invoked by uid 99); 17 Nov 2011 15:33:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 15:33:12 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 15:33:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9E87A8AA62 for ; Thu, 17 Nov 2011 15:32:51 +0000 (UTC) Date: Thu, 17 Nov 2011 15:32:51 +0000 (UTC) From: "Colm O hEigeartaigh (Resolved) (JIRA)" To: dev@ws.apache.org Message-ID: <1977257228.39080.1321543971650.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2055266961.35973.1321472633455.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (WSS-324) org.apache.ws.security.str.SignatureSTRParser throws ArrayIndexOutOfBoundsException: 0 when crypto returns zero-length array of certificates 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/WSS-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colm O hEigeartaigh resolved WSS-324. ------------------------------------- Resolution: Fixed > org.apache.ws.security.str.SignatureSTRParser throws ArrayIndexOutOfBoundsException: 0 when crypto returns zero-length array of certificates > -------------------------------------------------------------------------------------------------------------------------------------------- > > Key: WSS-324 > URL: https://issues.apache.org/jira/browse/WSS-324 > Project: WSS4J > Issue Type: Bug > Components: WSS4J Handlers > Affects Versions: 1.6.3 > Reporter: Marek Cyzio > Assignee: Colm O hEigeartaigh > Priority: Trivial > Fix For: 1.6.4 > > Original Estimate: 2h > Remaining Estimate: 2h > > Line 191 and below: > X509Certificate[] foundCerts = secRef.getX509IssuerSerial(crypto); > if (foundCerts != null) { > certs = new X509Certificate[]{foundCerts[0]}; > } > Should be: > X509Certificate[] foundCerts = secRef.getX509IssuerSerial(crypto); > if (foundCerts != null && foundCerts.length > 0) { > certs = new X509Certificate[]{foundCerts[0]}; > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org For additional commands, e-mail: dev-help@ws.apache.org