-
Notifications
You must be signed in to change notification settings - Fork 3
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
uri-parser single slash or double slash #34
Comments
I am revisiting this issue after hitting an unrelated issue. Wikipedia summarizes rules regarding the number of slashes as follows: Following only these rules it would seem:
empty hostname rfc 3986:
Let's denote the number of slashes by ux for example 'file:/path/' is u1, 'file://path/ is u2 There seems to be a lot of misunderstandings of how to encode Windows paths to file URIs. At its core, this stems from the fact that the RFC8089 specifies the syntax of a file URI, but not how the various operating systems convert their respective paths.
To maximize compatibility it makes sense to emit the most common representation, which judging by the links is u3. However, FMUs should also aim to consume other legal representations. The first references provide a number of recommendations for Unix and Windows
Links: |
So to understand what you are saying - You are backing the proposal of using /// right? |
Yes, I think we should follow the recommendations of /// for absolute paths on both Unix and Windows |
URIs on windows are allowed with single slags, i.e.
file:/c:/...
but it is more typical to use
file:///c:/...
as also mentioned in https://tools.ietf.org/html/rfc8089 in Appendix B (and D.2)Therefore, it could make sense to chance Maestro to use
///
instead of/
The text was updated successfully, but these errors were encountered: