Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-4453

After setting up custom permissions level Share is not working

    Details

    • Testcase ID:
      Hide

      AONE-7214

      Show
      AONE-7214

      Description

      Preconditions:
      1. Any user is created;
      2. Any folder is created;
      3. Any content is added to the folder;

      Steps:

      1. Copy the permissionDefinitions.xml (webapps\alfresco\WEB-INF\lib\alfresco-repository-5.0.b.jar\model\permissionDefinitions.xml)

      1a. add
      <permissionGroup name="MedicareWriteProp" allowFullControl="false" expose="false" >
      <includePermissionGroup type="cm:cmobject" permissionGroup="Consumer"/>
      <includePermissionGroup type="sys:base" permissionGroup="ReadPermissions"/>
      <includePermissionGroup type="sys:base" permissionGroup="ChangePermissions"/>
      </permissionGroup>
      1.b add
      <permissionGroup name="MedicareWriteProp" extends="true" expose="true"/>
      under <permissionSet type="cm:content" expose="selected">
      1.c add
      <permissionGroup name="MedicareWriteProp" extends="true" expose="true"/>
      under <permissionSet type="cm:folder" expose="selected">

      Save permissionDefinitions.xml and put it to shared/classes/alfresco/extension

      2.Create AONE-7214.properties file, which contains:

      role.medicarewriteprop=Medicare Properties Writer

      and put it to shared\classes\alfresco\messages\

      3.Create AONE-7214-context.xml file, which contains:
      <?xml version='1.0' encoding='UTF-8'?>
      <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
      <beans>
      <!-- ===================== -->
      <!-- Permissions Model DAO -->
      <!-- ===================== -->
      <bean id='permissionsModelDAO' class="org.alfresco.repo.security.permissions.impl.model.PermissionModel" init-method="init">
      <property name="model">
      <value>alfresco/extension/permissionDefinitions.xml</value>
      </property>
      <property name="dtdSchema">
      <value>alfresco/model/permissionSchema.dtd</value>
      </property>
      <property name="nodeService">
      <ref bean="nodeService" />
      </property>
      <property name="dictionaryService">
      <ref bean="dictionaryService" />
      </property>
      </bean>
      </beans>

      Put it to shared/classes/alfresco/extension

      4. Create AONE-7214-context.xml file, which contains:

      <?xml version='1.0' encoding='UTF-8'?>
      <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="
      http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

      <!-- Override resource bundle file list -->
      <bean id="webscripts.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
      <list>
      <value>webscripts.messages.webscripts</value>
      <value>alfresco.messages.common</value>
      <value>alfresco.messages.slingshot</value>
      <value>alfresco.messages.aone-7214</value>
      </list>
      </property>
      </bean>

      </beans>

      Put it to shared/classes/alfresco/web-extension

      5. Restart Alfresco.

      Expected results : you should be able to manage permission for any folder
      Actual result : Share fails and it appears "Something's wrong with this page..." (as in screenshot)

        Attachments

        1. alfresco.log
          70 kB
        2. AONE-7214.properties
          0.0 kB
        3. AONE-7214-context.xml
          0.7 kB
        4. AONE-7214-context(web-extention).xml
          0.7 kB
        5. permissionDefinitions.xml
          25 kB
        6. screenshot.JPG
          screenshot.JPG
          66 kB
        7. share.log
          113 kB

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                abobeica Andrei Bobeica [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 10 minutes
                  3h 10m

                    Structure Helper Panel