[
https://issues.apache.org/jira/browse/TAPESTRY-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Cooley updated TAPESTRY-1315:
----------------------------------
Attachment: LocalizedNameGenerator.java
LocalizedNameGeneratorTest.java
Proposed fix for cases where there is no "." in the suffix. Unless there is
some specific need to further parse the "path," then it seems as though using
the entire path for inclusion is applicable.
For instance, if a user passes in the path "context:/blah", then its localized
name should be "context:/blah_LOCALE." While this is not necessarily an
advised manner to handle names in the localized space, it should keep the
current StringOutOfBoundsException from occurring.
> Context expression without period results in StringIndexOutOfBoundsException
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-1315
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1315
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-ioc
> Affects Versions: 5.0
> Environment: Tapestry 5.0.2, Windows XP
> Reporter: Mike D Pilsbury
> Priority: Minor
> Attachments: LocalizedNameGenerator.java,
> LocalizedNameGeneratorTest.java
>
>
> A context expression that does not include at least one period (for example
> "context:/blah") results in a StringIndexOutOfBoundsException.
> "String index out of range: -1"
> # java.lang.String.substring(String.java:1768)
> #
> org.apache.tapestry.ioc.internal.util.LocalizedNameGenerator.<init>(LocalizedNameGenerator.java:68)
> #
> org.apache.tapestry.ioc.internal.util.AbstractResource.forLocale(AbstractResource.java:101)
> #
> org.apache.tapestry.internal.services.AssetSourceImpl.findRelativeAsset(AssetSourceImpl.java:93)
> #
> org.apache.tapestry.internal.services.AssetSourceImpl.findAsset(AssetSourceImpl.java:87)
> # org.example.myapp.components.PageStyle.setup(PageStyle.java:30)
> .
> .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]