AnsweredAssumed Answered

Creating a new permission in a repo amp

Question asked by logxjb on Mar 31, 2014
Latest reply on Mar 31, 2014 by logxjb

Following this tutorial:

I wanted to create a new permission.

In the model directory, I've made a duplicate of the original permissionDefinitions.xml file and added my new permission

<permissionSet type="cm:cmobject" expose="selected">
    <permissionGroup name="SpecialContributor" allowFullControl="false" expose="true" >
        <includePermissionGroup permissionGroup="Collaborator" type="cm:cmobject" />

In the context directory, I've put the following in the service-context.xml file

   <bean id="${project.artifactId}_extendPermissionModel" parent="permissionModelBootstrap">
       <property name="models">

Anyway after applying the amp and restarting the server, I'm unable to login on Alfresco.

catalina.out says:

Mar 31, 2014 1:42:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 34252 ms
2014-03-31 13:42:08,241  ERROR [solr.tracker.CoreTracker] [SolrTrackerScheduler_Worker-3] Tracking failed
org.alfresco.error.AlfrescoRuntimeException: 02310001 GetModelsDiff return status is 404
   at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(
   at org.alfresco.solr.tracker.CoreTracker.trackModels(
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(
   at org.quartz.simpl.SimpleThreadPool$

If I uninstall the amp, everything goes fine.

Thanks for any help,