AnsweredAssumed Answered

Version History and 'can't create branches' error

Question asked by angelborroy Moderator on Jul 9, 2014
Latest reply on Jul 10, 2014 by angelborroy
We have an installation of Alfresco 4.2.c over Oracle 11g. Despite this is not a supported configuration for Community versions, we need to demonstrate that Alfresco works fine before adopting Alfresco Enterprise.

Every functionality seems to work but versioning. Reading Alfresco source code, we have identified a problem: at VersionHistoryImpl.VersionComparatorAsc java code, versions are ordered by node-dbid field. It should be ok, but we have found version labels with a node-dbid assignment inconsistent (5.3 with node-dbid=57746 and 5.4 with node-dbid=57735). For this nodes, Alfresco is failing with a "Can't create branches" error log.

On the other hand, we have seen deprecated methods for version ordering in Alfresco source code which are based on version label (VersionLabelComparator.java). This code should fit our scenario.

The questions: Should we adapt the code to order versions by version label? Anyone knows why Alfresco is setting disordered sequence ids when using Oracle?

Thanks in advance.

Outcomes