Invalid URI aftter calling resolve()

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • tbd
    • Affects Version/s: 11, 14
    • Component/s: core-libs
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Resolving a relative path to a URI without any path results in an invalid URI

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      new URI("http://test.com").resolve( "path" ).toString()

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      http://test.com/path
      ACTUAL -
      http://test.compath

      ---------- BEGIN SOURCE ----------
      assert new URI("http://test.com").resolve( "path" ).toString().equals("http://test.com/path")
      ---------- END SOURCE ----------

      FREQUENCY : always


            Assignee:
            Daniel Fuchs
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: