Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-16279

Repo hangs if content model has a circular class reference (within the model)

    Details

      Description

      Here's an example. Put both files in shared/classes/alfresco/extension and restart the repo (or alternatively try to activate as a dynamic model - via Share UI or Repo Admin console). Repo will hang (in CompiledModel.resolveInhertiance).

      my-model-context.xml

      <?xml version='1.0' encoding='UTF-8'?>
      <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
       
      <beans>
      
      <bean id="my.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
      
        <property name="models">
              <list>
                  <value>alfresco/extension/custom-model.xml</value>
              </list>
        </property>
      
      </bean>
      
      </beans>
      

      my-model.xml

      <model xmlns="http://www.alfresco.org/model/dictionary/1.0" name="myZ:myModel">
      
      <namespaces>
        <namespace uri="myZ.model" prefix="myZ"/>
      </namespaces>
      
      <types>
      
        <type name="myZ:mytypeA">
          <parent>myZ:mytypeC</parent>
        </type>
      
        <type name="myZ:mytypeB">
          <parent>myZ:mytypeA</parent>
        </type>
      
        <type name="myZ:mytypeC">
          <parent>myZ:mytypeA</parent>
        </type>
      
      </types>
      
      </model>
      

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  jvonka Jan Vonka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 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 - 2 days, 35 minutes
                    2d 35m

                      Structure Helper Panel