Menu

#1995 Some special cases not handled correctly when resolving URLs

2.33
closed
RBRi
None
1
2018-10-17
2018-10-17
No

When resolving the final URL from a base URL and a (relative) path, there are two special cases where HtmlUnit behaves differently compared with real browsers. This happens only if the path starts with "/..".

baseUrl:             "http://www.example.com/some/path"

path:                "/...there-used-to-be-a-time/index.html"
expected target URL: "http://www.example.com/...there-used-to-be-a-time/index.html"
actual target URL:   "http://www.example.com.there-used-to-be-a-time/index.html"

path:                "/..there-used-to-be-a-time/index.html"
expected target URL: "http://www.example.com/..there-used-to-be-a-time/index.html"
actual target URL:   "http://www.example.comthere-used-to-be-a-time/index.html"

I believe I have a fix for that. Will provide a pull request later this evening.

Thanks!

PS: Is this still the right place to report issues or shall we rather use GitHub Issues instead?

Discussion

  • RBRi

    RBRi - 2018-10-17
     
  • RBRi

    RBRi - 2018-10-17

    Thanks, PR merged already. The new artifacts are available on the new build machine.

    Report future issues here or on github, i will take care of both for the next time.

     
  • RBRi

    RBRi - 2018-10-17
    • status: open --> closed
    • assigned_to: RBRi
     

Log in to post a comment.

MongoDB Logo MongoDB