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

Dynamic Data List editing clears the attachment uploaded by File Upload option

    Details

    • Branch Version/s:
      6.2.x, 6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      2
    • Fix Priority:
      4
    • Similar Issues:
      Show 5 results 

      Description

      Steps to reproduce are:
      1. As a "Site Owner", Go to control panel >>> Dynamic Data Lists menu.
      2. Select "Manage Data Definitions" and start by adding a new definition.
      3. Lets call our definition as "DD1", It should have 2 fields, one is a "Text" type and another as "File Upload" type, no other changes are required.
      4. Now save the definition "DD1".
      5. On "Dynamic Data Lists" screen click on "Add" to create a new list, lets keep the name as "List 1". And map the definition "DD1" created above to this "List 1".
      6. Now save the List, thus a new list "List 1" is created mapped to the data definition "DD1".
      7. Now add a new record to the list but specifying some text and attaching a file and save it.
      8. Till now everything works fine but the issue comes while editing the record.
      9. Now if you go to this record and open it in edit mode and either just change the text in "Text" field or does nothing and "Publish" the record. It gives you a success message but file or attachments get removed from the record, which is not what is expected as the data should remain their.

      Another use case is seen if I make this "File Upload" as required field and if I try to edit the record the file attached to it, it shows me the attachment but does not allow me to edit then publish again until an unless I provide the file again.

        Issue Links

          Activity

          Hide
          Luyang Tan (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

          When I open the record in edit mode and Publish the record, the attachment get removed from the record.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 40e22a46fd3fca422399b2f23c9fe8f56a3da0a4.

          When I open the record in edit mode and Publish the record, the attachment still exsit in the record.

          Show
          Luyang Tan (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. When I open the record in edit mode and Publish the record, the attachment get removed from the record. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 40e22a46fd3fca422399b2f23c9fe8f56a3da0a4. When I open the record in edit mode and Publish the record, the attachment still exsit in the record.
          Hide
          Juan Gonzalez added a comment -

          Seems committed.

          Show
          Juan Gonzalez added a comment - Seems committed.
          Hide
          Luyang Tan (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Fixed on:
          Tomcat 7.0.40 + MySQL 5.5.21. Portal 6.1.x.EE GIT ID: b6652c35602dcc8706c87a793a43c11e657de9ef.

          When I open the record in edit mode and Publish the record, the attachment still exsit in the record.

          Show
          Luyang Tan (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0.40 + MySQL 5.5.21. Portal 6.1.x.EE GIT ID: b6652c35602dcc8706c87a793a43c11e657de9ef. When I open the record in edit mode and Publish the record, the attachment still exsit in the record.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                39 weeks, 2 days ago

                Development

                  Structure Helper Panel