Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-43685

Content type (mime) is incorrect when Layout(URL) is associated with FileEntry

    Details

      Description

      Steps to reproduce:
      1. Create new Site Page (Layout) with Type=URL and link it to Document Library File Entry (e.g MS Word document)
      2. Try to download document using Friendly URL of this page

      Server responds the following headers:
      ...
      Content-Type: text/plain
      Content-Disposition: attachment; filename="filename.doc"
      ...

      It allows us to download file, but browser cannot recognize that it is a MS Word document.

      When downloading documents by direct link (/documents/.../.../filename.doc/d2659df7-d3bf-43...) everything is ok (Content-Type: application/msword is sent).

      I believe it can be easily fixed as we can get information about the file (Content-Disposition: ... "filename.doc").

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 26 weeks, 5 days ago

                Packages

                Version Package