Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-19094

Crash server by adding cyclic model to "Data Dictionary/Models"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.2.c Community
    • Fix Version/s: None
    • Component/s: Repository
    • Security Level: external (External user)
    • Labels:
      None

      Description

      Creating a model with cyclic import :

      <model name="ncwf:claim-process"><author>beCPG</author><version>1.0</version>
      <imports><import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/><import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/><import uri="http://www.bcpg.fr/model/nc-workflow/1.0" prefix="ncwf"/></imports><namespaces><namespace uri="http://www.bcpg.fr/model/nc-workflow/1.0" prefix="ncwf"/></namespaces><data-types/><constraints/>
      ...
      </model>

      and deploy it into "Data Dictionnary/Models"

      Make system crash and unrecoverable:

      Caused by: java.lang.StackOverflowError
      at org.alfresco.repo.dictionary.M2Model.getName(M2Model.java:170)
      at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.loadModel(DictionaryRepositoryBootstrap.java:489)
      at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.loadModel(DictionaryRepositoryBootstrap.java:489)

      ....

      The only way to restart system is to modify repo-admin-context.xml to ignore "Data Dictionary/Models"

      Regards

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  laborima Matthieu Laborie (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Date of First Response:

                    Structure Helper Panel