Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-22009

OSP ScaffoldingSpecific not initialized with defaultPermissions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Incorporated
    • Affects Version/s: 10.0
    • Fix Version/s: None
    • Component/s: OSP: Wizards - Matrix
    • Labels:
      None
    • Environment:
      Mac OSX 10.7.3 - OpenJDK 1.7 and OpenJDK 1.6 - Tomcat 7

      Description

      I am seeing an issue in trunk with the following bean throwing an NPE
      during startup (2.10-SNAPSHOT):

      osp-matrix-component/src/webapp/WEB-INF/components.xml

      <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 first!

      <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>

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    noahbotimer Noah Botimer
                    Reporter:
                    ern Earle R Nietzel
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    0 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration