You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by jc...@apache.org on 2021/08/17 17:10:31 UTC

[brooklyn-server] branch master updated: fix for 406 http error on post request ha/state

This is an automated email from the ASF dual-hosted git repository.

jcabrerizo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git


The following commit(s) were added to refs/heads/master by this push:
     new b935979  fix for 406 http error on post request ha/state
     new 34adf4f  Merge pull request #1224 from zan-mateusz/fix/api-ha-state
b935979 is described below

commit b93597928c6016e0257cf5b830f0ebf67af9bb12
Author: zan-mateusz <ma...@cloudsoftcorp.com>
AuthorDate: Tue Aug 17 16:48:11 2021 +0100

    fix for 406 http error on post request ha/state
---
 rest/rest-api/src/main/java/org/apache/brooklyn/rest/api/ServerApi.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rest/rest-api/src/main/java/org/apache/brooklyn/rest/api/ServerApi.java b/rest/rest-api/src/main/java/org/apache/brooklyn/rest/api/ServerApi.java
index 7c40824..096a928 100644
--- a/rest/rest-api/src/main/java/org/apache/brooklyn/rest/api/ServerApi.java
+++ b/rest/rest-api/src/main/java/org/apache/brooklyn/rest/api/ServerApi.java
@@ -136,7 +136,7 @@ public interface ServerApi {
     @POST
     @Path("/ha/state")
     @ApiOperation(value = "Changes the HA state of this management node")
-    @Produces({MediaType.APPLICATION_FORM_URLENCODED})
+    @Consumes({MediaType.APPLICATION_FORM_URLENCODED})
     public ManagementNodeState setHighAvailabilityNodeState(
             @ApiParam(name = "mode", value = "The state to change to")
             @FormParam("mode") HighAvailabilityMode mode);