You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Wolfgang Winter (JIRA)" <ji...@apache.org> on 2013/07/23 12:00:48 UTC
[jira] [Created] (TAP5-2146) ClasspathAssetAliasManager cuts off
first character
Wolfgang Winter created TAP5-2146:
-------------------------------------
Summary: 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