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

Details

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

    Description

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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: