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

DLFolderService that return a list of objects should return empty list if there is no permission to VIEW

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE RC3
    • Fix Version/s: 6.2.0 CE RC3, 6.2.0 CE RC5
    • Component/s: DM
    • Labels:
      None

      Description

      There are some methods in DLFolderServiceImpl that returns a List<Object> and if the user doesn't have permission to view it throws an exception instead of returning an empty list.

      @Override
      public List<Object> getFileEntriesAndFileShortcuts(
      long groupId, long folderId, int status, int start, int end)
      throws PortalException, SystemException

      { DLFolderPermission.check( getPermissionChecker(), groupId, folderId, ActionKeys.VIEW); QueryDefinition queryDefinition = new QueryDefinition( status, start, end, null); return dlFolderFinder.filterFindFE_FS_ByG_F( groupId, folderId, queryDefinition); }

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              sergio.gonzalez Sergio Gonzalez (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 3 weeks, 2 days ago

                Packages

                Version Package
                6.2.0 CE RC3
                6.2.0 CE RC5