You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Mike D Pilsbury (JIRA)" <ta...@jakarta.apache.org> on 2007/03/04 23:57:50 UTC
[jira] Created: (TAPESTRY-1315) Context expression with period
results in StringIndexOutOfBoundsException
Context expression with period results in StringIndexOutOfBoundsException
-------------------------------------------------------------------------
Key: TAPESTRY-1315
URL: https://issues.apache.org/jira/browse/TAPESTRY-1315
Project: Tapestry
Issue Type: Bug
Components: IoC Container
Affects Versions: 5.0
Environment: Tapestry 5.0.2, Windows XP
Reporter: Mike D Pilsbury
Priority: Minor
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Closed: (TAPESTRY-1315) Context expression without period
results in StringIndexOutOfBoundsException
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-1315.
------------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.8
> 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
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.0.8
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1315) Context expression without period
results in StringIndexOutOfBoundsException
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560885#action_12560885 ]
Howard M. Lewis Ship commented on TAPESTRY-1315:
------------------------------------------------
A patch is generally easier to use than files, but thanks anyway.
> 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
> Assignee: Howard M. Lewis Ship
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Assigned: (TAPESTRY-1315) Context expression without period
results in StringIndexOutOfBoundsException
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAPESTRY-1315:
----------------------------------------------
Assignee: Howard M. Lewis Ship
> 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
> Assignee: Howard M. Lewis Ship
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1315) Context expression without period
results in StringIndexOutOfBoundsException
Posted by "Paul Cooley (JIRA)" <de...@tapestry.apache.org>.
[ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1315) Context expression without period
results in StringIndexOutOfBoundsException
Posted by "Mike D Pilsbury (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike D Pilsbury updated TAPESTRY-1315:
--------------------------------------
Summary: Context expression without period results in StringIndexOutOfBoundsException (was: Context expression with period results in StringIndexOutOfBoundsException)
> 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: IoC Container
> Affects Versions: 5.0
> Environment: Tapestry 5.0.2, Windows XP
> Reporter: Mike D Pilsbury
> Priority: Minor
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org