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

Recycle Bin Crashes when restoring duplicate content

    Details

      Description

      Attempting to restore a document from the recycle bin, when a new, identical document already exists causes the recycle bin to crash (null pointer exception.)

      Steps to Reproduce:

      1. Create a Wiki Node titled 'Test'
      2. Recycle the Node
      3. Create a new Wiki Node, also titled 'Test'
      4. Navigate to your recycle bin
      5. in the options by 'Test', click 'Restore'

      Expected Outcome:

      Portal shows a 'Duplicate Entry' warning, and prompts the user to pick which version of the entry to keep.

      Actual Outcome:

      Recycle bin portlet disappears, showing the error 'Portlet is temporarily unavailable'. Console prints a lengthy null pointer exception stack trace. Restore fails.

      Notes:

      This bug does not appear consistently-- Automated testing only fails on 1/8 of runs.

      Confirmed to fail on my machine(Windows 10), with a pristine server.

      Tested with Wiki Content, Web Content, and Basic Documents.

       

      Reproduced on:

      Tomcat 8.0.32 + MySQL 5.6. Portal master GIT ID: fed67d2c2c308ad91fd8209b609761d06dac95a7.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sylvia.luan Sylvia Luan
                Reporter:
                brian.chen Brian Chen (Inactive)
                Participants of an Issue:
                Recent user:
                Jason Pince
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 19 weeks, 4 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master