This is an exported version of the JIRA issue tracker. Please use the Google Code site to open new tickets or report updates to these existing tickets. Feel free to contact the mailing list with any questions.

[NRB-3] isUrlAllowed gets confused by ending /
Created: Sat, 25 Oct 2003 17:22:11 -0700 (PDT)  Updated: Sat, 25 Oct 2003 17:51:06 -0700 (PDT)

Status:Closed
Project:Norbert
Component/s:
Affects Version/s:0.1
Fix Version/s:0.1.1

Type:BugPriority: Major
Reporter:Henri YandellAssignee:Henri Yandell
Resolution:Fixed 
Environment:


 Description   
Tesd Mielczarek has found a bug:

java.lang.IllegalArgumentException: Illegal to use a
different url, http://cnnfn.multexinvestor.com, for this robots.txt:
http://cnnfn.multexinvestor.com/

in isUrlAllowed.

His suggested fix is to switch the code checking this from String based to URL based. Sounds good to me, but first step is to get a unit test that breaks.
Comment by bayard [ Sat, 25 Oct 2003 17:51:06 -0700 (PDT) ]
Test added to prove 0.1 has the bug, and fix applied to the source code.