Uploaded image for project: 'Migration 4.4 to 4.5 (closed)'
  1. Migration 4.4 to 4.5 (closed)
  2. MGNLMIGRATION-223

MigrationUtil.relativeToAbsolute returns path starting with //

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.2.1
    • 1.2
    • None
    • None

      MigrationUtil.relativeToAbsolute("/someAbsolutePath","somerelativePath")
      == "//someAbsolutePath/somerelativePath" 
      

      Which can produce unnecessary exception in Migration.travelExtends:

      if (templateNode.getSession().itemExists(absolutePath)) {
          extendedNode = travelExtends(templateNode.getSession().getNode(extendedPath));
          } else {
             throw new Exception("Template is extending non-existing node!");
          }
      }
      

        Acceptance criteria

              rkovarik Roman Kovařík
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: