mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126509 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 122792 jkaabimofrad: RA-676, RA-677, RA-678: - Added check to return 404 response when the renditionId is registered but is not applicable for the node's mimeType. - Added check to return 400 when the source node has no content. - Changed the create rendition response to return an empty body. - Modified the exception when the renditionId is not registered. - Fixed the framework to include “errorKey” in the error response which was missing from some exceptions such as EntityNotFoundException. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126853 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -33,7 +33,6 @@ import org.alfresco.util.PropertyCheck;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.extensions.webscripts.Status;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -82,7 +81,7 @@ public class NodeRenditionsRelation implements RelationshipResourceAction.Read<R
|
||||
{
|
||||
renditions.createRendition(nodeId, rendition, parameters);
|
||||
}
|
||||
return Collections.emptyList();
|
||||
return null;
|
||||
}
|
||||
|
||||
@WebApiDescription(title = "Download rendition", description = "Download rendition")
|
||||
|
Reference in New Issue
Block a user