Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4533

wrong extends configuration fails loading of dialogs or templates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.5.5
    • 4.5.4
    • None
    • None

      In case an absolute path is used in the extends field and if this node doesn't exist then a runtime exception is thrown. This exception makes the reload() method of the dialog or template manager fail and no item gets registered.

      To fix the issue we have to rewrite ExtendingContentWrapper.isExists(..) as follows:

          private boolean isExists(String extendedNode, Content parent) throws RepositoryException {
              if (extendedNode.startsWith("/")){
                  return getWrappedContent().getHierarchyManager().isExist(extendedNode);
              }
              else{
                  return parent.hasContent(extendedNode);
              }
          } 
      

        Acceptance criteria

              ochytil Ondrej Chytil
              pbaerfuss Philipp Bärfuss
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD