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

Editing a zero-byte file and uploading a document creates a new version

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2, 6.2.0 CE M2
    • Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M3
    • Component/s: Documents & Media
    • Labels:
    • Environment:
      Tomcat 7 + MySQL 5. 6.2.x GIT ID: 6d280617f28523c41bd9dae101c9b948eb6abaf0.

      Description

      This problem arises when one creates a new file entry that (1) is 0 bytes and (2) has no extension.

      Steps to reproduce:

      1. Navigate to Control Panel > Documents and Media
      2. Click Add > Basic Document
      3. Enter Title "No File" (without an extension), do not upload file
      4. Publish
      5. Click "No File" > Edit
      6. Upload a document file
        Version increases from 1.0 to 1.1

      Expected: Version should not increase
      Actual: Version increased

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              christine.pince Christine Pince (Inactive)
              Reporter:
              christine.pince Christine Pince (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 45 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M3