[
https://issues.apache.org/jira/browse/TAP5-2146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship closed TAP5-2146.
--------------------------------------
Resolution: Duplicate
> ClasspathAssetAliasManager cuts off first character
> ---------------------------------------------------
>
> Key: TAP5-2146
> URL: https://issues.apache.org/jira/browse/TAP5-2146
> 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