Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1061

AssetService doesn't translate paths relative to CSS file.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.1.1
    • 4.1.1
    • None
    • None

    Description

      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"

      Attachments

        1. TAP-1061.patch
          4 kB
          Ben Sommerville

        Issue Links

          Activity

            People

              jkuhnert Jesse Kuhnert
              bpsommerville Ben Sommerville
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: