Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

59526: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3)
      59400: Merged DEV to V4.2-BUG-FIX (4.2.1)
         59385 : MNT-10277 : REST API: When updating blog post via WebScript 200 response is returned but blog post is not updated in fact
            - BlogPut webscript should returne 400 Bad request when blog post is updated. This web script was desinged for updating external blog configuration


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62143 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-12 01:38:38 +00:00
parent 2af8cbd705
commit 95231af7af

View File

@@ -33,6 +33,7 @@ import org.alfresco.service.namespace.QName;
import org.json.simple.JSONObject;
import org.springframework.extensions.webscripts.Cache;
import org.springframework.extensions.webscripts.Status;
import org.springframework.extensions.webscripts.WebScriptException;
import org.springframework.extensions.webscripts.WebScriptRequest;
/**
@@ -53,6 +54,7 @@ public class BlogPut extends AbstractBlogWebScript
{
// They appear to have supplied a blog post itself...
// Oh well, let's hope for the best!
throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Blog post should not be updated via this web script.");
}
if (site != null && containerNodeRef == null)