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

Extension name change of basic document downloads file with new extension

    Details

      Description

      Description:
      When a file is uploaded to a basic document and the extension of the Title* (name) of the file is changed, that new name is used when trying to download the file and an error occurs.

      Steps to Reproduce:
      1. Create a new basic document
      2. Upload a file to the document (liferay-logo.png for my test); publish
      3. Download the file
      4. Edit file and change the extension within the file name (.png to .jpg for my test); publish
      5. Download the file

      Expected Result:
      The file downloads with the correct extension (.png for my test)

      Actual Result:
      The file downloads with the new extension in the file name (.jpg in my test) Attempting to open the file fails due to "Error Interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50)"

      Branch: Reproduced (83cc7c4eeba3caa5bbab62d49038dfccb2c49025)
      Master: Reproduced (2afbd3bc6125a7e30ae25ea27a37950157a99f56)

      (See attached GIF file for demonstrated behavior)

        Attachments

          Activity

            People

            • Assignee:
              summer.zhang Summer Zhang
              Reporter:
              il.kim Brian I. Kim
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 9 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP58
                7.0.0 DXP SP9
                7.0.X
                7.1.10 DXP FP1
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master