Tapestry
  1. Tapestry
  2. TAPESTRY-1061

AssetService doesn't translate paths relative to CSS file.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.1
    • Component/s: None
    • Labels:
      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"

      1. TAP-1061.patch
        4 kB
        Ben Sommerville

        Issue Links

          Activity

          Ben Sommerville created issue -
          Ben Sommerville made changes -
          Field Original Value New Value
          Attachment TAP-1061.patch [ 12338790 ]
          Andreas Andreou made changes -
          Link This issue relates to TAPESTRY-952 [ TAPESTRY-952 ]
          Jesse Kuhnert made changes -
          Assignee Jesse Kuhnert [ jkuhnert ]
          Jesse Kuhnert made changes -
          Fix Version/s 4.1.1 [ 12312021 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Mark Thomas made changes -
          Workflow jira [ 12381668 ] Default workflow, editable Closed status [ 12567852 ]
          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12567852 ] jira [ 12590981 ]

            People

            • Assignee:
              Jesse Kuhnert
              Reporter:
              Ben Sommerville
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development