asepaprianto / crawler4j

Automatically exported from code.google.com/p/crawler4j
0 stars 0 forks source link

WebURL.java causes IndexOutOfBoundException #285

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Using an url without last slash '/' causes this error on line 94 (domain = 
url.substring(domainStartIdx, domainEndIdx);) due to domainEndIdx has a value 
of -1.
For testing, use a URL like http://www.google.es instead of 
http://www.google.es/

What version of the product are you using?
Tested with version 3.5 and 3.6-SNAPSHOT

Original issue reported on code.google.com by jorgehor...@gmail.com on 19 Aug 2014 at 7:12

GoogleCodeExporter commented 9 years ago
Thank you for the report, I will test it and fix if necessary.

Original comment by avrah...@gmail.com on 19 Aug 2014 at 7:29

GoogleCodeExporter commented 9 years ago
Related Issues:
Issue 131
Issue 206

Original comment by avrah...@gmail.com on 19 Aug 2014 at 7:31

GoogleCodeExporter commented 9 years ago
Thank you Jorge for the bug report.

Fixed and added a Junit test.

Fixed at revision: 65954e30f219 

Original comment by avrah...@gmail.com on 19 Aug 2014 at 3:34