directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn McKinney (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FC-64) AdminRoleDAO.unload has NPE
Date Wed, 11 Feb 2015 18:52:12 GMT

     [ https://issues.apache.org/jira/browse/FC-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shawn McKinney resolved FC-64.
------------------------------
    Resolution: Fixed

there were two problems:
1. AdminRoleDAO.getAdminRole did not check for null search entry and dropped into the unload.
2. UserP.assign/deassign funcs were not themselves checking for null attributes on userRole
which caused #1 to occur.

Both have been fixed.

> AdminRoleDAO.unload has NPE
> ---------------------------
>
>                 Key: FC-64
>                 URL: https://issues.apache.org/jira/browse/FC-64
>             Project: FORTRESS
>          Issue Type: Bug
>    Affects Versions: 1.0.0-RC39
>            Reporter: Shawn McKinney
>             Fix For: 1.0.0-RC40
>
>
> Here is stack trace:
> Caused by: java.lang.NullPointerException
> 	at org.apache.directory.fortress.core.rbac.AdminRoleDAO.unloadLdapEntry(AdminRoleDAO.java:686)
> 	at org.apache.directory.fortress.core.rbac.AdminRoleDAO.getRole(AdminRoleDAO.java:429)
> 	at org.apache.directory.fortress.core.rbac.AdminRoleP.read(AdminRoleP.java:80)
> 	at org.apache.directory.fortress.core.rbac.DelAdminMgrImpl.assignUser(DelAdminMgrImpl.java:268)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:435)
> 	at com.sun.proxy.$Proxy26.assignUser(Unknown Source)
> 	at org.apache.directory.fortress.web.panel.UserDetailPanel$UserDetailForm.assignAdminRole(UserDetailPanel.java:1667)
> 	at org.apache.directory.fortress.web.panel.UserDetailPanel$UserDetailForm.access$1500(UserDetailPanel.java:102)
> 	at org.apache.directory.fortress.web.panel.UserDetailPanel$UserDetailForm$9.onSubmit(UserDetailPanel.java:806)
> 	at org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:108)
> 	at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:179)
> 	at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1266)
> 	at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
> 	at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
> 	at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:156)
> 	at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:123)
> 	at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:633)
> 	... 50 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message