]
Galder Zamarreño updated ISPN-1193:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
return code for rest wipe cache command changed
-----------------------------------------------
Key: ISPN-1193
URL:
https://issues.jboss.org/browse/ISPN-1193
Project: Infinispan
Issue Type: Feature Request
Reporter: Michal Linhard
Assignee: Galder Zamarreño
Fix For: 5.0.0.FINAL
let's document a return value of cache wipe operation in REST interface and make it
consistent between 5.0 and 4.2.
wiping the cache via REST in 5.0.0.CR4
{code}
[mlinhard@michal-linhard ~]$ curl -X DELETE -v
http://test1:8080/datagrid/rest/___defaultcache
* About to connect() to test1 port 8080 (#0)
* Trying 192.168.11.101... connected
* Connected to test1 (192.168.11.101) port 8080 (#0)
> DELETE /datagrid/rest/___defaultcache HTTP/1.1
> User-Agent: curl/7.21.0 (i386-redhat-linux-gnu) libcurl/7.21.0 NSS/3.12.8.0
zlib/1.2.5 libidn/1.18 libssh2/1.2.4
> Host: test1:8080
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Content-Length: 0
< Date: Thu, 23 Jun 2011 11:48:01 GMT
<
* Connection #0 to host test1 left intact
* Closing connection #0
{code}
wiping the cache via REST in 4.2.2-SNAPSHOT
{code}
[mlinhard@michal-linhard ~]$ curl -X DELETE -v
http://localhost:8080/infinispan-server-rest/rest/___defaultcache
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
> DELETE /infinispan-server-rest/rest/___defaultcache HTTP/1.1
> User-Agent: curl/7.21.0 (i386-redhat-linux-gnu) libcurl/7.21.0 NSS/3.12.8.0
zlib/1.2.5 libidn/1.18 libssh2/1.2.4
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
< X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
< Date: Thu, 23 Jun 2011 11:51:24 GMT
<
* Connection #0 to host localhost left intact
* Closing connection #0
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: