[HtmlUnit] [htmlunit:bugs] #1860 HtmlUnit unable to handle unknown scheme urls properly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1860 HtmlUnit unable to handle unknown scheme urls properly

Mikhail

[bugs:#1860] HtmlUnit unable to handle unknown scheme urls properly

Status: open
Group: 2.25
Created: Sat Mar 11, 2017 01:40 PM UTC by Mikhail
Last Updated: Sat Mar 11, 2017 01:40 PM UTC
Owner: nobody

Stack trace:

Exception in thread "Crawler#4" java.lang.RuntimeException: Cannot change path of URL: whatsapp://send?text=sometext
at com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewPath(WebRequest.java:189)
at com.gargoylesoftware.htmlunit.WebRequest.setUrl(WebRequest.java:117)
at com.gargoylesoftware.htmlunit.WebRequest.<init>(WebRequest.java:76)
at com.gargoylesoftware.htmlunit.WebClient.openWindow(WebClient.java:868)
at com.gargoylesoftware.htmlunit.WebClient.openWindow(WebClient.java:851)
at com.github.nukesparrow.htmlunit.HUQuery.open(HUQuery.java:84)
at com.azazar.videocrawler.Crawler.handleUrl(Crawler.java:258)
at com.azazar.videocrawler.Crawler.loop(Crawler.java:224)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.MalformedURLException: unknown protocol: whatsapp
at java.net.URL.<init>(URL.java:593)
at java.net.URL.<init>(URL.java:483)
at java.net.URL.<init>(URL.java:432)
at com.gargoylesoftware.htmlunit.util.UrlUtils.createNewUrl(UrlUtils.java:531)
at com.gargoylesoftware.htmlunit.util.UrlUtils.getUrlWithNewPath(UrlUtils.java:413)
at com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewPath(WebRequest.java:186)
... 8 more


Sent from sourceforge.net because [hidden email] 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.


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1860 HtmlUnit unable to handle unknown scheme urls properly

Ahmed Ashour-3

And what is the behavior of the real browsers in this case?

Can you also provide a complete scenario?


[bugs:#1860] HtmlUnit unable to handle unknown scheme urls properly

Status: open
Group: 2.25
Created: Sat Mar 11, 2017 01:40 PM UTC by Mikhail
Last Updated: Sat Mar 11, 2017 01:40 PM UTC
Owner: nobody

Stack trace:

Exception in thread "Crawler#4" java.lang.RuntimeException: Cannot change path of URL: whatsapp://send?text=sometext
at com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewPath(WebRequest.java:189)
at com.gargoylesoftware.htmlunit.WebRequest.setUrl(WebRequest.java:117)
at com.gargoylesoftware.htmlunit.WebRequest.<init>(WebRequest.java:76)
at com.gargoylesoftware.htmlunit.WebClient.openWindow(WebClient.java:868)
at com.gargoylesoftware.htmlunit.WebClient.openWindow(WebClient.java:851)
at com.github.nukesparrow.htmlunit.HUQuery.open(HUQuery.java:84)
at com.azazar.videocrawler.Crawler.handleUrl(Crawler.java:258)
at com.azazar.videocrawler.Crawler.loop(Crawler.java:224)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.MalformedURLException: unknown protocol: whatsapp
at java.net.URL.<init>(URL.java:593)
at java.net.URL.<init>(URL.java:483)
at java.net.URL.<init>(URL.java:432)
at com.gargoylesoftware.htmlunit.util.UrlUtils.createNewUrl(UrlUtils.java:531)
at com.gargoylesoftware.htmlunit.util.UrlUtils.getUrlWithNewPath(UrlUtils.java:413)
at com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewPath(WebRequest.java:186)
... 8 more


Sent from sourceforge.net because [hidden email] 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.


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1860 HtmlUnit unable to handle unknown scheme urls properly

Mikhail
In reply to this post by Mikhail

It seems, that I have mistaken. I didn't notice, that it was attempt to actually load that URL.


[bugs:#1860] HtmlUnit unable to handle unknown scheme urls properly

Status: open
Group: 2.25
Created: Sat Mar 11, 2017 01:40 PM UTC by Mikhail
Last Updated: Sat Mar 11, 2017 07:15 PM UTC
Owner: nobody

Stack trace:

Exception in thread "Crawler#4" java.lang.RuntimeException: Cannot change path of URL: whatsapp://send?text=sometext
at com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewPath(WebRequest.java:189)
at com.gargoylesoftware.htmlunit.WebRequest.setUrl(WebRequest.java:117)
at com.gargoylesoftware.htmlunit.WebRequest.<init>(WebRequest.java:76)
at com.gargoylesoftware.htmlunit.WebClient.openWindow(WebClient.java:868)
at com.gargoylesoftware.htmlunit.WebClient.openWindow(WebClient.java:851)
at com.github.nukesparrow.htmlunit.HUQuery.open(HUQuery.java:84)
at com.azazar.videocrawler.Crawler.handleUrl(Crawler.java:258)
at com.azazar.videocrawler.Crawler.loop(Crawler.java:224)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.MalformedURLException: unknown protocol: whatsapp
at java.net.URL.<init>(URL.java:593)
at java.net.URL.<init>(URL.java:483)
at java.net.URL.<init>(URL.java:432)
at com.gargoylesoftware.htmlunit.util.UrlUtils.createNewUrl(UrlUtils.java:531)
at com.gargoylesoftware.htmlunit.util.UrlUtils.getUrlWithNewPath(UrlUtils.java:413)
at com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewPath(WebRequest.java:186)
... 8 more


Sent from sourceforge.net because [hidden email] 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.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] [htmlunit:bugs] #1860 HtmlUnit unable to handle unknown scheme urls properly

Ahmed Ashour-3
In reply to this post by Mikhail
  • status: open --> wont-fix
  • assigned_to: Ahmed Ashour

[bugs:#1860] HtmlUnit unable to handle unknown scheme urls properly

Status: wont-fix
Group: 2.25
Created: Sat Mar 11, 2017 01:40 PM UTC by Mikhail
Last Updated: Tue Mar 14, 2017 04:47 AM UTC
Owner: Ahmed Ashour

Stack trace:

Exception in thread "Crawler#4" java.lang.RuntimeException: Cannot change path of URL: whatsapp://send?text=sometext
at com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewPath(WebRequest.java:189)
at com.gargoylesoftware.htmlunit.WebRequest.setUrl(WebRequest.java:117)
at com.gargoylesoftware.htmlunit.WebRequest.<init>(WebRequest.java:76)
at com.gargoylesoftware.htmlunit.WebClient.openWindow(WebClient.java:868)
at com.gargoylesoftware.htmlunit.WebClient.openWindow(WebClient.java:851)
at com.github.nukesparrow.htmlunit.HUQuery.open(HUQuery.java:84)
at com.azazar.videocrawler.Crawler.handleUrl(Crawler.java:258)
at com.azazar.videocrawler.Crawler.loop(Crawler.java:224)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.MalformedURLException: unknown protocol: whatsapp
at java.net.URL.<init>(URL.java:593)
at java.net.URL.<init>(URL.java:483)
at java.net.URL.<init>(URL.java:432)
at com.gargoylesoftware.htmlunit.util.UrlUtils.createNewUrl(UrlUtils.java:531)
at com.gargoylesoftware.htmlunit.util.UrlUtils.getUrlWithNewPath(UrlUtils.java:413)
at com.gargoylesoftware.htmlunit.WebRequest.buildUrlWithNewPath(WebRequest.java:186)
... 8 more


Sent from sourceforge.net because [hidden email] 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.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop