Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6872

As a developer I would like to determine while editing a compound/document type if it has been committed or not

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Outdated
    • None
    • None
    • None

    Description

      Reproduction scenario:
      1- Login into the CMS
      2- From the 'Browse' perspective go to 'Configuration'
      3- Create a new compound/document type
      4- From the 'Mixins' section choose any type, 'Taggable' for example
      5- Delete property you just added a log message is displayed on the screen

      [INFO] [talledLocalContainer] 01.02.2013 14:08:28 WARN [org.hippoecm.frontend.editor.builder.TemplateBuilder.getJcrNodeType():987] Could not retrieve node type 'hippogogreen:blablabla'. Maybe it is not saved yet. javax.jcr.nodetype.NoSuchNodeTypeException:

      {http://www.onehippo.org/jcr/hippogogreen/2.0}

      justfortest

      Details:
      -----------

      • Currently in 'org.hippoecm.frontend.editor.builder.TemplateBuilder#getJcrNodeType' I catch the 'NoSuchNodeTypeException' which happens if the type being edited is not committed yet
      • That solves the problem but not good enough
      • It would be much better if we can determine if the type being edited is committed yet

      Hints:
      --------

      • Look at code in:
        1. editor/common/src/main/java/org/hippoecm/editor/model
        2. editor/common/src/main/java/org/hippoecm/editor/repository
        3. editor/repository/src/main/java/org/hippoecm/editor/repository/impl/EditmodelWorkflowImpl.java

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mnour Mohammad Nour (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: