Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix workdir-uri generation bug #3624

Merged
merged 1 commit into from
Oct 31, 2020

Conversation

jelovirt
Copy link
Member

@jelovirt jelovirt commented Oct 31, 2020

Description

Make sure URI for a directory will always end in a trailing slash.

Motivation and Context

If a File points to a path that doesn't exist, File.toURI() will not output a trailing slash. This PR fixes that.

How Has This Been Tested?

Tests pass and added a new test for toDirURI function.

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)

Documentation and Compatibility

None

@jelovirt jelovirt added bug priority/medium Medium (or unknown) priority issue preprocess labels Oct 31, 2020
@jelovirt jelovirt self-assigned this Oct 31, 2020
Make sure URI for a directory will always end in a trailing slash. If the File points to a path that doesn't exist, File.toURI() will not output a trailing slash.

Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
@jelovirt jelovirt merged commit 3d6958e into develop Oct 31, 2020
@jelovirt jelovirt deleted the feature/workdir-uri-trailing-slash-bug branch October 31, 2020 14:54
@lief-erickson
Copy link
Contributor

If a File points to a path that doesn't exist, File.toURI() will not output a trailing slash.

This statement conflicts with the title of this issue. I'm guessing "not" is a typo and should be "now." The code seems to reflect the title. Just want to confirm.

@jelovirt jelovirt added this to the Next milestone Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug preprocess priority/medium Medium (or unknown) priority issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants