mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix response status in node rendition request
This commit is contained in:
@@ -382,7 +382,7 @@ public class Node extends ModelRequest<Node>
|
||||
public void createNodeRenditionIfNotExists(String renditionId) throws Exception
|
||||
{
|
||||
getNodeRendition(renditionId);
|
||||
if (HttpStatus.OK.toString().equals(restWrapper.getStatusCode()))
|
||||
if (Integer.valueOf(restWrapper.getStatusCode()).equals(HttpStatus.OK.value()))
|
||||
{
|
||||
String postBody = JsonBodyGenerator.keyValueJson("id", renditionId);
|
||||
RestRequest request = RestRequest.requestWithBody(HttpMethod.POST, postBody, "nodes/{nodeId}/renditions", repoModel.getNodeRef());
|
||||
|
Reference in New Issue
Block a user