tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2042) Favico url malformed when the page has a context in the request
Date Fri, 04 Jan 2013 21:48:13 GMT

    [ https://issues.apache.org/jira/browse/TAP5-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544277#comment-13544277

Howard M. Lewis Ship commented on TAP5-2042:

This will go away if you have an actual favicon.ico file.

Whats happening is that the browser is asking automatically for the favicon.ico file, and
that looks to Tapestry like a request for the Index page; it fails trying to convert the string
into a number, so as to invoke your activate event handler method.

Tapestry should probably filter out requests for favicon.ico.

Also, you can solve this problem by providing a real favicon.ico file; Tapestry will always
defer to a static file that exists, rather than handle the request.
> Favico url malformed when the page has a context in the request
> ---------------------------------------------------------------
>                 Key: TAP5-2042
>                 URL: https://issues.apache.org/jira/browse/TAP5-2042
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.6
>            Reporter: Matías Blasi
>              Labels: activate, context, favicon
> When trying to acces to a page of my application "ticket/list" with a context, like:
> http://localhost/ticket/list/1/8
> The page request is correctly processed, I get the page as expected, but, there is a
next request for the favico, with an incorrect url:
> Caused by: java.lang.NumberFormatException: For input string: "ico"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Long.parseLong(Long.java:438)
>         at java.lang.Long.<init>(Long.java:690)
>         at org.apache.tapestry5.ioc.services.TapestryIOCModule$9.coerce(TapestryIOCModule.java:241)
>         at org.apache.tapestry5.ioc.services.TapestryIOCModule$9.coerce(TapestryIOCModule.java:238)
>         at org.apache.tapestry5.ioc.services.CoercionTuple$CoercionWrapper.coerce(CoercionTuple.java:54)
>         at org.apache.tapestry5.ioc.internal.services.TypeCoercerImpl$TargetCoercion.coerce(TypeCoercerImpl.java:71)
>         ... 87 more
> [INFO] ComexwebModule.TimingFilter Request time: 327 ms
> 0:0:0:0:0:0:0:1 -  -  [04/ene/2013:11:16:14 +0000] "GET /ticket/list/1/ico/favicon.png
HTTP/1.1" 500 4323 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko)
Chrome/24.0.1312.35 Safari/537.17"
> If I get the page with no activation context, everithing works fine.
> Regards,
> Matías.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message