Uploaded image for project: 'Forrest'
  1. Forrest
  2. FOR-764

Locationmap returns relative paths

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8
    • Fix Version/s: None
    • Component/s: Locationmap
    • Labels:
      None

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rgardler Ross Gardler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: