[cle-release-team] Quick Issue with Scafolding
Earle Nietzel
earle.nietzel at gmail.com
Tue Apr 3 07:41:06 PDT 2012
Thanks Noah
https://jira.sakaiproject.org/browse/SAK-22009
Earle
On Tue, Apr 3, 2012 at 8:24 AM, Noah Botimer <botimer at umich.edu> wrote:
> Hi, Earle.
>
> Thanks for pointing this out. Could you please make sure that this is in a JIRA ticket? I have a bit of time this week to work on prepping OSP for 2.9, so this will be on my list.
>
> Thanks,
> -Noah
>
> On Apr 2, 2012, at 10:48 PM, Earle Nietzel wrote:
>
>> 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