You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ben Sommerville (JIRA)" <ta...@jakarta.apache.org> on 2006/08/14 11:29:14 UTC

[jira] Updated: (TAPESTRY-1061) AssetService doesn't translate paths relative to CSS file.

     [ http://issues.apache.org/jira/browse/TAPESTRY-1061?page=all ]

Ben Sommerville updated TAPESTRY-1061:
--------------------------------------

    Attachment: TAP-1061.patch

Patch that fixes problem.

Moved the normalization of the path to after it has been processed for relative CSS includes.  
This seems to catch all the cases I could think of.

> AssetService doesn't translate paths relative to CSS file.
> ----------------------------------------------------------
>
>                 Key: TAPESTRY-1061
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1061
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.1
>            Reporter: Ben Sommerville
>            Priority: Minor
>         Attachments: TAP-1061.patch
>
>
> The AssertService.translatePath method doesn't deal properly with paths like
>     "/dojo/src/widget/template/HtmlComboBox.css../images/foo.gif"
> The first ".." relative to the CSS file is not removed & so the asset is not found if it is in a jar.
> Currently the result is 
>     "/dojo/src/widget/template/../images/foo.gif"
> When it should be
>     "/dojo/src/widget/images/foo.gif"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org