[HtmlUnit] [htmlunit:bugs] #1995 Some special cases not handled correctly when resolving URLs

RBRi via HtmlUnit-develop <[email protected]> Wed, 17 Oct 2018 18:09:21 -0000
Newsgroups gmane.comp.java.htmlunit.devel
Message-ID </p/htmlunit/bugs/1995/777c78f16c906bf4aa3716a2e69569eed3025b2f.bugs@htmlunit.p.sourceforge.net>
- **Comment**:

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.



---

** [bugs:#1995] Some special cases not handled correctly when resolving URLs**

**Status:** open
**Group:** 2.33
**Created:** Wed Oct 17, 2018 04:27 PM UTC by Joerg Werner
**Last Updated:** Wed Oct 17, 2018 04:27 PM UTC
**Owner:** nobody


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?



---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop