Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-834

Server Error on asset download with content disposition header conaining special characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an issue
    • Icon: Major Major
    • None
    • 2.4.1
    • DAM App
    • JBoss EAP 7.2

      If I have an asset with a file name that contains special characters like ยด the download of this asset fails and a server error is shown.

      This issue happens only with JBoss application server. On tomcat server everything is fine.

      The solution is to use an url encoded file name instead to use the file name directly from the asset.

      res.setHeader(CONTENT_DISPOSITION, "attachment; filename=\"" + asset.getFileName() + "\"");
      

        Acceptance criteria

              Unassigned Unassigned
              frank.sommer Frank Sommer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD