[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:35 -0000
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | </p/htmlunit/bugs/1995/5cd1dec5147854d9932ffc922730414815b4f9cd.bugs@htmlunit.p.sourceforge.net> |
- **status**: open --> closed
- **assigned_to**: RBRi
---
** [bugs:#1995] Some special cases not handled correctly when resolving URLs**
**Status:** closed
**Group:** 2.33
**Created:** Wed Oct 17, 2018 04:27 PM UTC by Joerg Werner
**Last Updated:** Wed Oct 17, 2018 06:09 PM UTC
**Owner:** RBRi
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