cancel
Showing results for 
Search instead for 
Did you mean: 

WebDAV and versioning

alibaba
Champ in-the-making
Champ in-the-making
Hello! I configured alfresco aspects using this manual docs.alfresco.com/5.0/tasks/versionable-make.html and restarted alfresco to make all files versionable/

I put contentModel.xml file there

/opt/alfresco-5.0.c/tomcat/webapps/alfresco/WEB-INF/contentModel.xml


<type name="cm:content">
   <properties>
   …
   </properties>
   <mandatory-aspects>
      <aspect>cm:versionable</aspect>
   </mandatory-aspects>
</type>



But when I upload new file via WebDAV versionionable aspect is not assigned to new document (No aspects assigned to file at all).



Version 5.0.c
3 REPLIES 3

alcuvi
Champ in-the-making
Champ in-the-making
Hello.
I have the same problem and cannot find solution.

I add the same tag

   <mandatory-aspects>
      <aspect>cm:versionable</aspect>
   </mandatory-aspects>

On contentModel.xml file and copy it to
/opt/alfresco-5.0.c/tomcat/webapps/alfresco/WEB-INF/

and to
/opt/alfresco-5.0.c/tomcat/shared/classes/alfresco/

But no aspect assigned…
Thanks a lot.

mrogers
Star Contributor
Star Contributor
Over-riding a model in the dictionary bootstrap is not the same as overriding a service.   See the dictionaryBootstrap bean in core-services-context.xml

In addition the recommended way to make content versionable is via a rule rather than hacking the core model.   There are content items that don't need versioning.

alcuvi
Champ in-the-making
Champ in-the-making
Thanks a lot mrogers.

I cannot find core-services-context.xml in the server.
Where is it?

I wanted to make all content versionable by default and if a specific file not need versioning, no matters.

Thanks a lot.