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

wrong extends configuration fails loading of dialogs or templates

    XMLWordPrintable

Details

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

    Description

      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);
              }
          } 
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD