URI resolver does not work well on Windows
Bug #868329 reported by
Daniel Turcanu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
Medium
|
Chris Hillery |
Bug Description
When resolving a Windows absolute path relative to another URI, URI resolver cannot see that it is an absolute path (does not check for C:\) and treats it as relative path. It only checks for Linux style absolute paths.
See test zorba/resolving
Changed in zorba: | |
assignee: | nobody → Daniel Turcanu (danielturcanu) |
Changed in zorba: | |
assignee: | nobody → Chris Hillery (ceejatec) |
importance: | Undecided → Medium |
To post a comment you must log in.
A solution to this would be to add another function in file module for resolving a file path with a given absolute URI. to-uri( $baseUri, $filePath)
file:path-
So file:path- to-uri( "file:/ //C%3A/ path/file1" , "e:/path2/file2") //E%3A/ path2/file2"
would produce "file:/