FLUID-6155: fluid.module.resolvePath adds an extra slash when used from the root of a drive....

Metadata

Source
FLUID-6155
Type
Bug
Priority
Minor
Status
Open
Resolution
N/A
Assignee
Colin Clark
Reporter
Tony Atkins [RtF]
Created
2017-05-01T09:55:33.366-0400
Updated
2017-05-01T09:55:33.366-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. node module

Description

In recent work with gpii-webdriver, I discovered another problem with part of infusion when used in a repository stored in the root of a filesystem.

Let's say I have the same repo checked out twice, once in c:/users/vagrant/gpii-webdriver, and once in the root of v:/

Let's say I want to resolve "%gpii-webdriver/path/to/file". If I resolve the path from c:/users/vagrant/gpii-webdriver, I get output like "c:/users/vagrant/gpii-webdriver/path/to/file".

If I resolve the same path from v:/, I get output like "v://path/to/file". Note the extra slash following the drive letter.

Either variation is directly useful as part of a file URI scheme, but IMO unless there is a concrete reason for it to differ, the output should be consistent in using (or not using) a second slash following the drive letter.

cc: @@Antranig Basman