geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Jain (JIRA)" <>
Subject [jira] Commented: (GERONIMO-5155) Locking a keystore under "Available" results in exception
Date Thu, 25 Feb 2010 17:10:27 GMT


Ashish Jain commented on GERONIMO-5155:

Hi Ivan,

There are 2 ways you can observe the problem 

1) one is to put a debug point @ "request.getPortletSession(true).getAttribute(KEYSTORE_DATA_PREFIX
+ keystore)" in LockKeystoreHandler . You will see that the string received has an extra space,
that is if keystore name is "test" than you will get "test ". this results in a null value
for KeystoreData and hence the null pointer exception. 

2) In admin console in "Keystore" portlet you can see there are two places you can of lock/unlock
a keystore one for "edit" and another for "usage". Once you take the mouse cursor over each
of them, you can observe  a visible difference in the target url @ the bottom pane of the
browser- one with extra space and one w/o an extra space.

I have used egaed version of the 2.1.4 to test this and can see the same problem existing
in 2.2 with similar uase, however in 2.2 the problem is due  to "Unrecognized portlet action
'lockKeystore'" this is because mode is being returned as "lockKeystore ".


> Locking a keystore under "Available" results in  exception
> ----------------------------------------------------------
>                 Key: GERONIMO-5155
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: security
>    Affects Versions: 2.1.4, 2.2
>         Environment: geronimo tomcat assembly
>            Reporter: Ashish Jain
>            Assignee: Ashish Jain
>             Fix For: 2.1.5, 2.2.1
>         Attachments: 5155_21.patch
> Llocking a keystore under "Available" tab in Keystore portlet  results in a null pointer
on the web browser for 2.1.  Here is the exception on 2.1
> java.lang.NullPointerException
> 	org.apache.geronimo.console.keystores.LockKeystoreHandler.actionBeforeView(
> 	org.apache.geronimo.console.MultiPagePortlet.processAction(
> 	org.apache.pluto.core.PortletServlet.dispatch(
> 	org.apache.pluto.core.PortletServlet.doGet(
> 	javax.servlet.http.HttpServlet.service(
> 	javax.servlet.http.HttpServlet.service(
> 	org.apache.pluto.core.DefaultPortletInvokerService.invoke(
> 	org.apache.pluto.core.DefaultPortletInvokerService.action(
> 	org.apache.pluto.core.PortletContainerImpl.doAction(
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(
> 	javax.servlet.http.HttpServlet.service(
> 	javax.servlet.http.HttpServlet.service(
> 	org.apache.geronimo.console.filter.PlutoUrlRebuildFilter.doFilter(
> 	org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(
> For 2.2 the error thrown is "2010-02-23 23:00:56,062 ERROR [MultiPagePortlet] Unrecognized
portlet action 'lockKeystore'"

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message