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

Value for field Temporary Storage Directory won't return to default after being changed

    Details

      Description

      Steps to reproduce:

      1. Upload image to Documents & Media
      2. Export LAR from Documents & Media admin portlet
        1. On the Documents & Media admin portlet, click on the kebab menu -> export/import -> export
        2. Download the resulting LAR file
      3. Delete image from Documents & Media
      4. Go to Control Panel -> Configuration > Server Administration > "Files Upload" tab
      5. Change value of field Temporary Storage Directory to "0" then save
      6. Change value of field: Temporary Storage Directory to "" then save

      Actual Result

      The field value won't reset to the default value. So if one tries to import the LAR file previously exported the portal will show an error (similar to the one described below):

      Error

      "The file Documents_and_Media-201805251030.portlet.lar cannot be imported.
      org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. 0/upload_00000209.lar (No such file or directory)"

      Expected Result

      The field value will return to its default value.

       
      The steps followed in order to reproduce the issue on master and 7.1.x were a bit different, since there are some differences between the versions:

      1. Go to Control Panel -> System Settings
      2. Inside the search box type "Upload"
      3. Select "Upload Servlet Request"
      4. Change value of field Temporary Storage Directory to "0" then save
      5. Change value of field: Temporary Storage Directory to "" then save
      6. The field value will return to its default value as expected.

       

      Please note: with the current fix being implemented, inputting "0" will not work.  The directory value needs to be valid in order to update it, otherwise an error is thrown.  You can simply input "data" as that will be considered a valid directory.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 21 weeks, 2 days ago

                Packages

                Version Package
                Master