mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
57069: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3) 56556: Merged V4.1-BUG-FIX (4.1.7) to V4.2-BUG-FIX (4.2.1) 56044: MNT-9519: Misleading error message about 'mimetype' when content is null * Replaced: MSG_ERR_WORKINGCOPY_HAS_NO_MIMETYPE with MSG_ERR_WORKINGCOPY_HAS_NO_CONTENT, coci_service.err_workingcopy_has_no_mimetype with coci_service.err_workingcopy_has_no_content * Tested via Eclipse Remote Debug git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61700 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -80,7 +80,7 @@ public class CheckOutCheckInServiceImpl implements CheckOutCheckInService
|
||||
private static final String MSG_ERR_NOT_OWNER = "coci_service.err_not_owner";
|
||||
private static final String MSG_ERR_ALREADY_WORKING_COPY = "coci_service.err_workingcopy_checkout";
|
||||
private static final String MSG_ERR_NOT_AUTHENTICATED = "coci_service.err_not_authenticated";
|
||||
private static final String MSG_ERR_WORKINGCOPY_HAS_NO_MIMETYPE = "coci_service.err_workingcopy_has_no_mimetype";
|
||||
private static final String MSG_ERR_WORKINGCOPY_HAS_NO_CONTENT = "coci_service.err_workingcopy_has_no_content";
|
||||
private static final String MSG_ALREADY_CHECKEDOUT = "coci_service.err_already_checkedout";
|
||||
private static final String MSG_ERR_CANNOT_RENAME = "coci_service.err_cannot_rename";
|
||||
|
||||
@@ -563,7 +563,7 @@ public class CheckOutCheckInServiceImpl implements CheckOutCheckInService
|
||||
ContentData contentData = (ContentData) nodeService.getProperty(workingCopyNodeRef, ContentModel.PROP_CONTENT);
|
||||
if (contentData == null)
|
||||
{
|
||||
throw new AlfrescoRuntimeException(MSG_ERR_WORKINGCOPY_HAS_NO_MIMETYPE, new Object[]{workingCopyNodeRef});
|
||||
throw new AlfrescoRuntimeException(MSG_ERR_WORKINGCOPY_HAS_NO_CONTENT, new Object[]{workingCopyNodeRef});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user