You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2013/07/23 19:22:48 UTC
[jira] [Commented] (TAP5-2147) ClasspathAssetAliasManager cuts off
first character
[ https://issues.apache.org/jira/browse/TAP5-2147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13716628#comment-13716628 ]
Howard M. Lewis Ship commented on TAP5-2147:
--------------------------------------------
Glad there's an easy workaround. I wonder if this affects 5.4?
> ClasspathAssetAliasManager cuts off first character
> ---------------------------------------------------
>
> Key: TAP5-2147
> URL: https://issues.apache.org/jira/browse/TAP5-2147
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2.4
> Reporter: Wolfgang Winter
> Priority: Minor
>
> I load an image like this:
> Asset bankLogoAsset = assetSource.getAsset(null, "logo_aw.gif", null);
> String url = bankLogoAsset.toClientURL();
> The image is in the root of the classpath. In TapestryFilterModule I added:
> public static void contributeClasspathAssetAliasManager(
> MappedConfiguration<String, String> configuration) {
> configuration.add("logo2", "");
> }
> The image is not shown because first character of asset is lost. Source code in browser is:
> <img alt="Bank Logo" width="150px" src="/rs-validation/assets/18c832a5f3622f53/logo2/ogo_aw.gif"/>
> If I put the image into a subfolder of the classpath it works with:
> public static void contributeClasspathAssetAliasManager(
> MappedConfiguration<String, String> configuration) {
> configuration.add("logo3", "images");
> }
> <img alt="Bank Logo" width="150px" src="/rs-validation/assets/89631b504b90292f/logo3/logo_aw.gif"/>
--
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