AbstractComponentMapper can't handle '//' in URLs 
--------------------------------------------------

                 Key: WICKET-3373
                 URL: https://issues.apache.org/jira/browse/WICKET-3373
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.5-RC1
            Reporter: Major Peter
         Attachments: wicket-3373.tar.gz

If for some reason you have an URL with '//', then 
AbstractComponentMapper.getPageClass() on line 138 will fail for checking the 
'name' argument, and will lead to an InvalidArgumentException. Based on 
http://www.ietf.org/rfc/rfc1738.txt the HTTP URL's have the following form:
; HTTP

httpurl        = "http://"; hostport [ "/" hpath [ "?" search ]]
hpath          = hsegment *[ "/" hsegment ]
hsegment       = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
search         = *[ uchar | ";" | ":" | "@" | "&" | "=" ]

Since '*' can be 0, hsegment can be empty, thus multiple / is allowed in URL's, 
so Wicket should be able to handle them.
See attachment for a simple example.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to