Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 92496 invoked from network); 17 Nov 2005 11:02:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Nov 2005 11:02:08 -0000 Received: (qmail 53278 invoked by uid 500); 17 Nov 2005 11:02:07 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 52578 invoked by uid 500); 17 Nov 2005 11:02:05 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 52565 invoked by uid 99); 17 Nov 2005 11:02:04 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2005 03:02:02 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 668EEE1 for ; Thu, 17 Nov 2005 12:01:41 +0100 (CET) Message-ID: <245571777.1132225301389.JavaMail.jira@ajax.apache.org> Date: Thu, 17 Nov 2005 12:01:41 +0100 (CET) From: "Vamsavardhana Reddy (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-1196) Keystore portlet: Viewing trusted certificate results in an error In-Reply-To: <1048278180.1132224281206.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-1196?page=all ] Vamsavardhana Reddy updated GERONIMO-1196: ------------------------------------------ Attachment: GERONIMO-1196.patch Problem seems to be due to a "" (empty string) used as alias for this certificate while importing it. Importing a certificate does not result in an error if an alias is not specified. GERONIMO-1196.patch: 1. Validates that alias is specified while importing a certificate using keystore portlet. 2. If a null or empty string is passed as alias, generates an alias in KeyStoreGBean.importTrustedX509Certificate() as issuerName + certificateSerialNumber. > Keystore portlet: Viewing trusted certificate results in an error > ----------------------------------------------------------------- > > Key: GERONIMO-1196 > URL: http://issues.apache.org/jira/browse/GERONIMO-1196 > Project: Geronimo > Type: Bug > Components: console > Environment: Win XP, Sun JDK 1.4.2_08 > Reporter: Vamsavardhana Reddy > Assignee: Vamsavardhana Reddy > Priority: Minor > Attachments: GERONIMO-1196.patch > > Viewing a trusted certificate results in an error. The following exception is logged to geronimo.log > 12:04:01,806 ERROR [PortletInvokerImpl] PortletInvokerImpl.render() - Error while dispatching portlet. > javax.portlet.PortletException > at org.apache.geronimo.console.certmanager.actions.ViewKeyStoreEntryDetail.render(ViewKeyStoreEntryDetail.java:69) > at org.apache.geronimo.console.certmanager.CertManagerPortlet.doView(CertManagerPortlet.java:134) > at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:250) > ... > Caused by: java.lang.NullPointerException > at sun.security.provider.JavaKeyStore$JKS.convertAlias(JavaKeyStore.java:40) > at sun.security.provider.JavaKeyStore.engineIsCertificateEntry(JavaKeyStore.java:409) > at java.security.KeyStore.isCertificateEntry(KeyStore.java:567) > at org.apache.geronimo.console.core.keystore.KeyStoreGBean.getKeyEntryInfo(KeyStoreGBean.java:179) > ... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira