[cle-release-team] Quick Issue with Scafolding
Earle Nietzel
earle.nietzel at gmail.com
Mon Apr 2 19:48:23 PDT 2012
Hi Noah,
I am seeing an issue in trunk with the following bean throwing an NPE
during startup (2.10-SNAPSHOT):
<bean id="org.theospi.portfolio.security.mgt.ToolPermissionManager.scaffoldingSpecific"
class="org.theospi.portfolio.security.model.SimpleSitePermissionManager"
init-method="init">
<property name="idManager"><ref bean="idManager"/></property>
<property name="permissionManager">
<ref bean="org.theospi.portfolio.security.mgt.PermissionManager" />
</property>
<property name="agentManager"><ref bean="agentManager" /></property>
<property
name="permissionEditName"><value>scaffoldingSpecific</value></property>
<property name="functionPrefix"><value>osp.matrix</value></property>
<property name="functions">
<list>
<ref
bean="org.theospi.portfolio.matrix.MatrixFunctionConstants.CAN_USE_SCAFFOLDING"/>
<ref
bean="org.theospi.portfolio.matrix.MatrixFunctionConstants.ACCESS_ALL_CELLS"/>
<ref
bean="org.theospi.portfolio.matrix.MatrixFunctionConstants.VIEW_EVAL_OTHER"/>
<ref
bean="org.theospi.portfolio.matrix.MatrixFunctionConstants.VIEW_FEEDBACK_OTHER"/>
<ref
bean="org.theospi.portfolio.matrix.MatrixFunctionConstants.MANAGE_STATUS"/>
<ref
bean="org.theospi.portfolio.matrix.MatrixFunctionConstants.ACCESS_USERLIST"/>
<ref
bean="org.theospi.portfolio.matrix.MatrixFunctionConstants.VIEW_ALL_GROUPS"/>
</list>
</property>
</bean>
Problem is it is missing the property defaultPermissions which when
access during the SimpleToolPermissionManager.init() it is null and an
NPE is thrown. I looked to see of some thing changed recently with
these files but I've not found nothing.
I cobbled together what that map may possibly look like but thought to
run it by you!
<property name="defaultPermissions">
<map>
<entry>
<key><ref
bean="org.theospi.portfolio.security.model.CrossRealmRoleWrapper.maintain"/></key>
<list>
<value>osp.matrix.scaffoldingSpecific.accessAll</value>
<value>osp.matrix.scaffoldingSpecific.viewEvalOther</value>
<value>osp.matrix.scaffoldingSpecific.viewFeedbackOther</value>
<value>osp.matrix.scaffoldingSpecific.manageStatus</value>
<value>osp.matrix.scaffoldingSpecific.accessUserList</value>
<value>osp.matrix.scaffoldingSpecific.viewAllGroups</value>
</list>
</entry>
<entry>
<key><ref
bean="org.theospi.portfolio.security.model.CrossRealmRoleWrapper.access"/></key>
<list>
<value>osp.matrix.scaffoldingSpecific.use</value>
</list>
</entry>
</map>
</property>
Thanks,
Earle
More information about the cle-release-team
mailing list