wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Marshall <IanMarshall...@GMail.com>
Subject Can the ILinkListener on-click URL be made case insensitive?
Date Tue, 06 May 2014 13:52:09 GMT
Hello,

I have a standard stateless link with an on-click handler. 

Does anyone know of a way to either allow case-insensitivity for URLs of
components and their listeners or else for the application to render these
in all lower case? (This is because web requests by bots can be made to a
link listener all in lower case after the page version number:
"/main/MyPage?-2.ilinklistener-lnkmylink".)

The HTML and code for my link follows:

HTML
----


Java code
---------
public class MyPageBase extends org.apache.wicket.markup.html.WebPage
{
  [...]

  StatelessLink lnkMyLink = new StatelessLink("lnkMyLink")
  {
    private static final long serialVersionUID = 1L;

    @Override
    public void onClick()
    {
      [...]
    }
  };
  add(lnkMyLink);
}


This results in the following HTML being sent to a web browser:




I have discovered that the web site is crawled by a bot that uses URLs all
in lower case after the page version number. So the web server produces an
error of the form:

/main/PageHome?-2.iLinkListener-lnkMyLink 404 77ms 0kb Mozilla/5.0 (Windows
NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 module=default
version=51-vaxmk2od

92.18.236.103 - - [06/May/2014:03:50:44 -0700] "GET
/main/MyPage?-2.ilinklistener-lnkmylink HTTP/1.1" 404 263 - "Mozilla/5.0
(Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0" "[URI]" ms=78
cpu_ms=43 cpm_usd=0.000029 app_engine_release=1.9.4
instance=00c61b117c8b6bedc38e2c09ba2915c08a572f

org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper
processListener: Unknown listener interface 'ilinklistener'

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-the-ILinkListener-on-click-URL-be-made-case-insensitive-tp4665709.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message