You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2013/07/25 01:01:49 UTC
[jira] [Assigned] (TAP5-2128) @Import leads to
StringIndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/TAP5-2128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAP5-2128:
------------------------------------------
Assignee: Howard M. Lewis Ship
> @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
>
> 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 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