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

DocumentLibrary portlet allows to upload file into folder that doesn't exist in given group

    Details

      Description

      Bug replication steps: (e.g. fresh 6.0.6 bundle):

      1. create 2 organizations e.g. org1 and org2
      2. select org1 from control panel menu,
      3. open document library,
      4. create folder e.g. org1folder, then open it
      5. select org2 from control panel menu -> document library still displays org1folder ! (instead should display message that there is no such folder)
      6. choose action : 'Add document' and upload file with classic uploader
      7. select org1 from control panel -> document lib shows no files in org1folder !
      8. return to the root folder and select org2 -> document lib shows no folders or files ! ,

      Result: table dlfileentry contains records with wrong groupId values .
      Cause: method getFolder in com.liferay.portlet.documentlibrary.action.ActionUtil should use groupId when getting folder (folder persistence service should offer method getFolder(folderId, groupId) ? ) and throw exc if not found

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 50 weeks ago

                  Packages

                  Version Package
                  --Sprint 12/11
                  6.1.0 CE RC1