PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-25924

Basic Document upload doesn't work for specified extensions if the extension is not represented in the title of the file

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Added to Fix Pack:
      Added
    • Similar Issues:
      Show 5 results 

      Description

      If dl.file.extensions is not equals with * the Basic Document uploader will trigger the following error e.g: when the only acceptable extension is pdf: "Document names must end with one of the following extensions: .pdf."

      Steps to reproduce:
      1.) set dl.file.extensions=.pdf in portal-ext.properties
      2.) start the portal
      3.) log in and navigate to Control Panel > Documents And Media
      4.) select Add > Basic Document
      5.) select a .pdf file from the file system
      6.) set title e.g.: my basic document
      7.) press Save

      expected behavior: file is uploaded with the title "my basic document"

      real behavior: user receives error message that he/she have to upload .pdf document

      reason: extension is validated against the title during add procedure

        Activity

        Hide
        Michael Saechang added a comment -

        Committed on:
        6.1.x GIT ID: a8e4c04291a1013e679219bd84a4ec355eab9956.
        6.2.x GIT ID: 4b37dd084c15f4312b0137bb6420181d41bd3b9d.

        Show
        Michael Saechang added a comment - Committed on: 6.1.x GIT ID: a8e4c04291a1013e679219bd84a4ec355eab9956. 6.2.x GIT ID: 4b37dd084c15f4312b0137bb6420181d41bd3b9d.
        Hide
        Pani Gui (Inactive) added a comment - - edited

        PASSED Manual Testing following the steps in the description.

        Reproduced on:
        Tomcat 7.0 + MySQL 5. 6.1.x EE GIT ID: 4b10bf61fb2dd9b75f4039eda56a81bf51120915.
        Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: 1ee01fd4dc1559fb538c7b686eec6e081f437d56.

        Can't add document if losing extension in the title field.

        Fixed on:
        Tomcat 7.0 + MySQL 5. 6.1.x EE GIT ID: ad1ce0f04911a514f07641d590ff9753223df74f.
        Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: f83da559959f9e07572ec05a4007db0ae5288310.

        Documents are saved successfully even though there is no extension in the title.

        Show
        Pani Gui (Inactive) added a comment - - edited PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. 6.1.x EE GIT ID: 4b10bf61fb2dd9b75f4039eda56a81bf51120915. Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: 1ee01fd4dc1559fb538c7b686eec6e081f437d56. Can't add document if losing extension in the title field. Fixed on: Tomcat 7.0 + MySQL 5. 6.1.x EE GIT ID: ad1ce0f04911a514f07641d590ff9753223df74f. Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: f83da559959f9e07572ec05a4007db0ae5288310. Documents are saved successfully even though there is no extension in the title.
        Hide
        Edward Gonzales added a comment -

        Slated for inclusion in 6.1.1 CE GA2

        Show
        Edward Gonzales added a comment - Slated for inclusion in 6.1.1 CE GA2

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 10 weeks, 4 days ago

              Development

                Subcomponents

                  Structure Helper Panel