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] [Updated] (TAP5-2128) @Import leads to StringIndexOutOfBoundsException
Date Mon, 04 Nov 2013 23:19:19 GMT

     [ https://issues.apache.org/jira/browse/TAP5-2128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Howard M. Lewis Ship updated TAP5-2128:
---------------------------------------

    Priority: Minor  (was: Major)

> @Import leads to StringIndexOutOfBoundsException
> ------------------------------------------------
>
>                 Key: TAP5-2128
>                 URL: https://issues.apache.org/jira/browse/TAP5-2128
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Valery Barysok
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> class org.apache.tapestry5.internal.services.ClasspathAssetAliasManagerImpl contains
method extractAssetAlias with
>             if (resourcePath.startsWith(pathPrefix))
>             {
>                 // Prevent matching path prefix "foo" against "foobar" ... it must match
against "foo/".
>                 if (resourcePath.charAt(pathPrefix.length()) != '/')
>                 {
>                     continue;
>                 }
> this code don't check when resourcePath.equals(pathPrefix) is true. In this case we get

> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 20
> To reproduce it just do next:
> @Import(library = InternalConstants.CORE_LIBRARY)
> public class Index {
> }



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message