Details

    • Fix Priority:
      3
    • Where was the bug?:
      Java
    • Similar Issues:
      Show 4 results 

      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;
      	}
      

        Issue Links

          Activity

          Hide
          Igor Spasic added a comment -

          serviceContext.scopeGroupId is still needed for further execution (used by permission checker, and maybe later as well), so I am setting it up in the code when target folder is 0 (default)

          Show
          Igor Spasic added a comment - serviceContext.scopeGroupId is still needed for further execution (used by permission checker, and maybe later as well), so I am setting it up in the code when target folder is 0 (default)
          Hide
          Alexander Chow added a comment -

          Updated the pull request to clean up scopeGroupId in DL

          Show
          Alexander Chow added a comment - Updated the pull request to clean up scopeGroupId in DL
          Hide
          Jorge Ferrer added a comment -

          Closing this as "Won't fix" for now. See comments at https://github.com/JorgeFerrer/liferay-portal/pull/117 for details.

          Show
          Jorge Ferrer added a comment - Closing this as "Won't fix" for now. See comments at https://github.com/JorgeFerrer/liferay-portal/pull/117 for details.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 33 weeks, 1 day ago

                Development

                  Structure Helper Panel