cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with extending Nuxeo Platform for Version Control.

mmurayama_Muray
Confirmed Champ
Confirmed Champ

Platform: Nuxeo 5.7.2 Fasttrack OS: Ubuntu 13.04

I have created an xml file in my <nuxeo_home>/nxserver/conf folder called defaultVersioningOverride.xml that has the contents of:

<?xml version="1.0"?>
<extension target="org.nuxeo.ecm.core.versioning.VersioningService" point="versioningRules">
  <versioningRule typeName="QMSDocument">
    <initialState major="0" minor="0"/>
    <options lifeCycleState="*">
      <minor default="true"/>
      <major/>
    </options>
  </versioningRule>
</extension>

I have a document type QMSDocument defined in and imported from Studio.

The problem is the Nuxeo Platform is ignoring my versioning override xml file. Did I miss something, or is this something that will have to be repackaged in a jar?

Please note that I am new to Nuxeo and do not have any experience with Java or xml programming. Thank you.

1 ACCEPTED ANSWER

Not applicable

The filename should end with "-config.xml" to be taken into account (cf this documentation).

View answer in original post

5 REPLIES 5

Not applicable

The filename should end with "-config.xml" to be taken into account (cf this documentation).

Okay, when I modify the file name, I start receiving these errors

Not applicable

Well, I suppose this means your file is used now, that's a positive point!

Thank you for the direction. Hopefully someone can look at the XML code and tell me what is incorrect.

mmurayama_Muray
Confirmed Champ
Confirmed Champ

I finally figured this issue out. In Studio in Advanced Settings -> XML Extensions I created a new extension called defaultVersioningOverride and added this:

<extension point="versioningRules" target="org.nuxeo.ecm.core.versioning.VersioningService">
  <versioningRule typeName="QMSDocument" enabled="true">
    <!-- <initialState major="0" minor="0"/> -->
    <options lifeCycleState="*">
      <minor default="true"/>
      <major/>
    </options>
  </versioningRule>
</extension>