Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3289

Mirage 2 with Jetty 9 has broken image links

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.6, 6.0
    • Fix Version/s: 5.7, 6.1
    • Component/s: XMLUI
    • Labels:
      None
    • Environment:
      Ubuntu 16.04, Jetty 9, OpenJDK 8
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      Mirage 2 theme has image links with two slashes:

      http://localhost:8081/themes/Mirage2//images/DSpace-logo-line.svg
      http://localhost:8081/themes/Mirage2//images/atmire-logo-small.svg
      

      Tomcat servers these without problems, but with Jetty 9, they are broken. They can be fixed for instance with by adding

      <compactPath>true</compactPath>
      

      to webapp config or

      <Set name="compactPath">true</Set>
      

      to context descriptor.

      If I have time and can find the offending slashes, I'll make a pull request for fixing the paths in Mirage 2 code.

        Attachments

          Activity

            People

            • Assignee:
              bram Bram Luyten (Atmire)
              Reporter:
              ilja.sidoroff Ilja Sidoroff
              Reviewer:
              Tim Donohue
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: