Details
-
Type:
Bug
-
Status:
In Review
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
-
Fix Version/s: --Sprint 11/12, 6.2.0 CE M2
-
Component/s: API, API > Portal Service, DM > Document Library Display
-
Labels:None
-
Fix Priority:3
-
Where was the bug?:Java
-
Similar Issues:
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
- is caused by
-
LPS-21378
Moving a file to a folder on another repository makes the file vanish into limbo
-

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)