You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "David Crossley (JIRA)" <ji...@apache.org> on 2005/12/15 02:17:45 UTC

[jira] Commented: (FOR-764) Locationmap returns relative paths

    [ http://issues.apache.org/jira/browse/FOR-764?page=comments#action_12360472 ] 

David Crossley commented on FOR-764:
------------------------------------

Will this work in webapp mode?

> Locationmap returns relative paths
> ----------------------------------
>
>          Key: FOR-764
>          URL: http://issues.apache.org/jira/browse/FOR-764
>      Project: Forrest
>         Type: Bug
>   Components: Locationmap
>     Versions: 0.8-dev
>     Reporter: Ross Gardler

>
> It is intended (at least by me) to allow locationmaps to expose resources to other plugins. For example, a stylesheet provided by one plugin may be used within another.
> Unfortunately, the location returned by a locationmap is relative, not absolute. Consequently, when we try and access a resource from a sitemap other than the plugins sitemap the locations are broken.
> What we need to do is provide an absolute location by pre-pending the path to the locationmap file. For example:
> suppose /home/foo/locationmap.xml has:
> <match pattern="foo.xml">
>   <location src="bar/foo.xml"/>
> </match>
> The location returned for {lm:foo.xml} should be "/home/foo/bar/foo.xml" (at present it is "bar/foo.xml")

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


Re: [jira] Commented: (FOR-764) Locationmap returns relative paths

Posted by Ross Gardler <rg...@apache.org>.
David Crossley (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/FOR-764?page=comments#action_12360472 ] 
> 
> David Crossley commented on FOR-764:
> ------------------------------------
> 
> Will this work in webapp mode?

It'll have to - thanks for the heads up. I don't foresee a problem, but 
that will need testing.

Ross