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

Moving a folder into itself crashes Documents and Media portlet and throws InvalidFolderException

    Details

      Description

      Reproduction steps:
      1) Patch a vanilla 6.2 portal with hotfix-6614-6210 and login as OmniAdmin
      2) Add a Documents & Media Portlet to the landing page
      3) Create a new folder
      4) Select the folder and choose "Move"
      5) Select the folder itself as new destination folder and click "Move"
      Expected:
      A message on the UI indicating somehow that it is not possible to move the folder into itself and
      An exception visible in the server trace only at DEBUG logging level
      Actual behavior:
      The portlet shows on the UI "Documents and Media is temporarily unavailable. " error message, the server throws:
      ERROR [RuntimePageImpl-1][render_portlet_jsp:132] null
      com.liferay.portlet.documentlibrary.InvalidFolderException: Cannot move folder 10461 into itself

        Attachments

        1. error.txt
          2 kB
        2. failed.png
          failed.png
          5 kB
        3. fixed.png
          fixed.png
          14 kB
        4. reproduced.png
          reproduced.png
          4 kB

          Issue Links

            Activity

              People

              Assignee:
              yvonne.han Yvonne Han
              Reporter:
              david.zhang David Zhang (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:
                6 years, 4 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5