[MGNLMIGRATION-223] MigrationUtil.relativeToAbsolute returns path starting with // Created: 08/Feb/13  Updated: 22/Feb/13  Resolved: 08/Feb/13

Status: Closed
Project: Migration 4.4 to 4.5 (closed)
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 1.2.1

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
is duplicated by MGNLMIGRATION-205 The message [ERROR] Error while find... Closed
Template:
Acceptance criteria:
Empty

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

Generated at Mon Feb 12 10:18:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.