[ 
https://issues.apache.org/jira/browse/TAPESTRY-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546399
 ] 

Howard M. Lewis Ship commented on TAPESTRY-1896:
------------------------------------------------

I'm having trouble reproducing this.

I've taken the AssetDemo class from the integration test app and moved it into 
a nested package.  I even changed the context from "/" to "/app1" and still 
everything lined up correctly.

I can reference context assets (using a path relative to the context root).

It's not important what Resource.getPath() returns, it's all about what 
Asset.toClientURL returns and that is working correctly.

> Paths wrong for context assets in root context.
> -----------------------------------------------
>
>                 Key: TAPESTRY-1896
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1896
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 5.0.6
>         Environment: Java 5, MacOS X 10.5, Jetty 6.1.
>            Reporter: Kevin Menard
>
> Calling asset.getResource().getPath() on a context asset in a webapp mapped 
> to the root context yields an incorrect path.  The path does not have the 
> leading "/", which represents the context.  As a result, linked in assets 
> (e.g., CSS or images) will work fine if at the root level of the webapp, but 
> if you go down to a deeper level, the asset path doesn't work and Tapestry 
> thinks you're trying to load in non-existent pages.
> When mapped to any other context, there is no problem.

-- 
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]

Reply via email to