Skip to content

Fixing URL generation from file path.#287

Merged
OriYosefiMSFT merged 1 commit into
microsoft:masterfrom
tfoel:master
Jul 11, 2016
Merged

Fixing URL generation from file path.#287
OriYosefiMSFT merged 1 commit into
microsoft:masterfrom
tfoel:master

Conversation

@tfoel

@tfoel tfoel commented Jul 1, 2016

Copy link
Copy Markdown

Appending 'file:/' at the start of a file path works only under windows, where paths start with the drive letter (-> file:/c:/...).
On Unix, paths start with /, resulting in a URL like file://var/lib/... - this is then interpreted as a file on the host 'var', in directory 'lib/...'

This fix utilizes Java to source the URL for a file, instead of crafting it manually.

Appending 'file:/' at the start of a file path work only under windows, where paths start with the drive letter (-> file:/c:/...).
On Unix, paths start with /, resulting in a URL like file://var/lib/... - this is then interpreted as a file on the host 'var', in directory 'lib/...'

This fix utilizes Java to source the URL for a file, instead of crafting it manually.
@msftclas

msftclas commented Jul 1, 2016

Copy link
Copy Markdown

Hi @SFThomas, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@msftclas

msftclas commented Jul 1, 2016

Copy link
Copy Markdown

@SFThomas, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, MSBOT;

@OriYosefiMSFT OriYosefiMSFT merged commit 784a713 into microsoft:master Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants