You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Mariangela Hills <ma...@wso2.com> on 2015/05/15 12:55:43 UTC

[Error] Wrong status code returned PUT /cartridgeGroups

Hi Devs,

Hi Devs,

201 is returned when executing PUT /cartridgeGroups this should be changed
to 200.


MariH:cartridges-groups Admin16$ curl -X PUT -H "Content-Type:
application/json" -d @'mysql-php-group.json' -k -v -u admin:admin
https://localhost:9443/api/cartridgeGroups
> PUT /api/cartridgeGroups HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
OpenSSL/0.9.8| zlib/1.2.5
> Host: localhost:9443
> Accept: */*
> Content-Type: application/json
> Content-Length: 535
>
* upload completely sent off: 535 out of 535 bytes
< HTTP/1.1 201 Created
< Date: Fri, 15 May 2015 09:00:37 GMT
< Location: https://localhost:9443/api/cartridgeGroups/mysql-php-group
< Content-Type: application/json
< Transfer-Encoding: chunked
< Server: WSO2 Carbon Server
<
* Connection #0 to host localhost left intact
{"status":"success","message":"Cartridge group updated successfully:
[cartridge-group] mysql-php-group"}* Closing connection #0
* SSLv3, TLS alert, Client hello (1):


Regards,
Mariangela




*--*
*Mariangela Hills*
PMC Member & Committer of Apache Stratos
Senior Technical Writer
WSO2, Inc.
lean.enterprise.middleware.
m: +94 773 500185
w: http://wso2.com
<http://wso2.com/events/>

Re: [Error] Wrong status code returned PUT /cartridgeGroups

Posted by Mariangela Hills <ma...@wso2.com>.
Thanks, Dinithi!

Regards,
Mariangela




*--*
*Mariangela Hills*
PMC Member & Committer of Apache Stratos
Senior Technical Writer
WSO2, Inc.
lean.enterprise.middleware.
m: +94 773 500185
w: http://wso2.com
<http://wso2.com/events/>

On Fri, May 15, 2015 at 4:55 PM, Dinithi De Silva <di...@wso2.com> wrote:

> Hi,
>
> This has been fixed with https://github.com/apache/stratos/pull/322
> <https://github.com/apache/stratos/pull/322>. Please merge the PR.
>
> Thanks
>
> On Fri, May 15, 2015 at 4:25 PM, Mariangela Hills <ma...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> Hi Devs,
>>
>> 201 is returned when executing PUT /cartridgeGroups this should be
>> changed to 200.
>>
>>
>> MariH:cartridges-groups Admin16$ curl -X PUT -H "Content-Type:
>> application/json" -d @'mysql-php-group.json' -k -v -u admin:admin
>> https://localhost:9443/api/cartridgeGroups
>> > PUT /api/cartridgeGroups HTTP/1.1
>> > Authorization: Basic YWRtaW46YWRtaW4=
>> > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
>> OpenSSL/0.9.8| zlib/1.2.5
>> > Host: localhost:9443
>> > Accept: */*
>> > Content-Type: application/json
>> > Content-Length: 535
>> >
>> * upload completely sent off: 535 out of 535 bytes
>> < HTTP/1.1 201 Created
>> < Date: Fri, 15 May 2015 09:00:37 GMT
>> < Location: https://localhost:9443/api/cartridgeGroups/mysql-php-group
>> < Content-Type: application/json
>> < Transfer-Encoding: chunked
>> < Server: WSO2 Carbon Server
>> <
>> * Connection #0 to host localhost left intact
>> {"status":"success","message":"Cartridge group updated successfully:
>> [cartridge-group] mysql-php-group"}* Closing connection #0
>> * SSLv3, TLS alert, Client hello (1):
>>
>>
>> Regards,
>> Mariangela
>>
>>
>>
>>
>> *--*
>> *Mariangela Hills*
>> PMC Member & Committer of Apache Stratos
>> Senior Technical Writer
>> WSO2, Inc.
>> lean.enterprise.middleware.
>> m: +94 773 500185
>> w: http://wso2.com
>> <http://wso2.com/events/>
>>
>
>
>
> --
> *Dinithi De Silva*
> Associate Software Engineer, WSO2 Inc.
> m:+94716667655 | e:dinithis@wso2.com | w: www.wso2.com
> | a: #20, Palm Grove, Colombo 03
>

Re: [Error] Wrong status code returned PUT /cartridgeGroups

Posted by Dinithi De Silva <di...@wso2.com>.
Hi,

This has been fixed with https://github.com/apache/stratos/pull/322
<https://github.com/apache/stratos/pull/322>. Please merge the PR.

Thanks

On Fri, May 15, 2015 at 4:25 PM, Mariangela Hills <ma...@wso2.com>
wrote:

> Hi Devs,
>
> Hi Devs,
>
> 201 is returned when executing PUT /cartridgeGroups this should be changed
> to 200.
>
>
> MariH:cartridges-groups Admin16$ curl -X PUT -H "Content-Type:
> application/json" -d @'mysql-php-group.json' -k -v -u admin:admin
> https://localhost:9443/api/cartridgeGroups
> > PUT /api/cartridgeGroups HTTP/1.1
> > Authorization: Basic YWRtaW46YWRtaW4=
> > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
> OpenSSL/0.9.8| zlib/1.2.5
> > Host: localhost:9443
> > Accept: */*
> > Content-Type: application/json
> > Content-Length: 535
> >
> * upload completely sent off: 535 out of 535 bytes
> < HTTP/1.1 201 Created
> < Date: Fri, 15 May 2015 09:00:37 GMT
> < Location: https://localhost:9443/api/cartridgeGroups/mysql-php-group
> < Content-Type: application/json
> < Transfer-Encoding: chunked
> < Server: WSO2 Carbon Server
> <
> * Connection #0 to host localhost left intact
> {"status":"success","message":"Cartridge group updated successfully:
> [cartridge-group] mysql-php-group"}* Closing connection #0
> * SSLv3, TLS alert, Client hello (1):
>
>
> Regards,
> Mariangela
>
>
>
>
> *--*
> *Mariangela Hills*
> PMC Member & Committer of Apache Stratos
> Senior Technical Writer
> WSO2, Inc.
> lean.enterprise.middleware.
> m: +94 773 500185
> w: http://wso2.com
> <http://wso2.com/events/>
>



-- 
*Dinithi De Silva*
Associate Software Engineer, WSO2 Inc.
m:+94716667655 | e:dinithis@wso2.com | w: www.wso2.com
| a: #20, Palm Grove, Colombo 03