URI resolver does not work well on Windows

Bug #868329 reported by Daniel Turcanu
6
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/path_to_uri.xq in branch lp:~danielturcanu/zorba/mytrunk

Changed in zorba:
assignee: nobody → Daniel Turcanu (danielturcanu)
Revision history for this message
Daniel Turcanu (danielturcanu) wrote :

A solution to this would be to add another function in file module for resolving a file path with a given absolute URI.
file:path-to-uri($baseUri, $filePath)

So file:path-to-uri("file:///C%3A/path/file1", "e:/path2/file2")
would produce "file:///E%3A/path2/file2"

Changed in zorba:
assignee: Daniel Turcanu (danielturcanu) → Gabriel Petrovay (gabipetrovay)
Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

I would say that such an addition, if accepted, should be added to the resolve-path function.

I will send a couple of emails regarding this extension.

Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

Followups in the discussion on zorba-coders: "File API extension for resolving path against a base URI/path"

Changed in zorba:
assignee: Gabriel Petrovay (gabipetrovay) → nobody
Changed in zorba:
assignee: nobody → Chris Hillery (ceejatec)
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.