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

DL API to move file includes mandatory field in serviceContext

    Details

      Description

      DL service calls to move file entry requires serviceContext.scopeGroupId to be filled if moving to default parent folder. Mandatory fields should not be in serviceContext.

      	protected Repository getRepository(
      			long folderId, ServiceContext serviceContext)
      		throws PortalException, SystemException {
      
      		Repository repository = null;
      
      		if (folderId == DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) {
      			repository = getRepository(serviceContext.getScopeGroupId());
      		}
      		else {
      			repository = getRepository(folderId, 0, 0);
      		}
      
      		return repository;
      	}
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 15 weeks ago

                  Packages

                  Version Package
                  --Sprint 11/12
                  6.2.0 CE M2