-
Type:
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: 6.0.5 GA, 6.0.6 GA
-
Fix Version/s: 6.1.0 CE RC1, --Sprint 11/12
-
Component/s: Documents & Media
-
Labels:None
In DLWebDAVStorageImpl There is the following code
if (PropsValues.DL_WEBDAV_SAVE_TO_SINGLE_VERSION) {
publishFileEntry(fileEntry);
}
And the publishFileEntry method looks like this
protected void publishFileEntry(DLFileEntry fileEntry) throws Exception {
DLFileVersion latestFileVersion =
DLFileVersionLocalServiceUtil.getLatestFileVersion(
fileEntry.getGroupId(), fileEntry.getFolderId(),
fileEntry.getName());
if (latestFileVersion.getStatus() ==
WorkflowConstants.STATUS_APPROVED)
ServiceContext serviceContext = new ServiceContext();
serviceContext.setAddCommunityPermissions(
isAddCommunityPermissions(fileEntry.getGroupId()));
serviceContext.setAddGuestPermissions(true);
DLFileEntryLocalServiceUtil.updateFileEntry(
latestFileVersion.getUserId(), latestFileVersion.getGroupId(),
latestFileVersion.getFolderId(), latestFileVersion.getName(),
fileEntry.getTitle(), fileEntry.getTitle(),
fileEntry.getDescription(), latestFileVersion.getDescription(),
true, fileEntry.getExtraSettings(), null, 0, serviceContext);
}
however since 6.0.3 this does not publish the file anymore because updateFileEntry now looks like
if (latestFileVersion.getStatus() !=
WorkflowConstants.STATUS_APPROVED)
eg. it publishes it as a draft