[ 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

Reply via email to