#9 fn:resolve-uri implementation wrong in some cases

closed-fixed
nobody
None
5
2011-04-25
2009-12-23
Stivo
No

Running a query like:
String query = "resolve-uri('/','http://example.com/bla/asdf/')";
gives this output
http://example.com/bla/asdf//
However, this should be:
http://example.com/

I replaced some code using the java library to do this stuff, which handles this case well and most likely all others too...
Surpisingly URIUtils.resolveURI also outputs a wrong result.

Discussion

  • Stivo

    Stivo - 2009-12-23

    Modified version of this class

     
  • Peter M. Fischer

    SVN commit 4285 fixes this problem, relying on a combination of the Java resolver and custom code to handle the special cases

     
  • Peter M. Fischer

    • status: open --> closed-fixed
     

Log in to post a comment.