[infinispan-issues] [JBoss JIRA] Commented: (ISPN-1193) return code for rest wipe cache command changed
Galder Zamarreño (JIRA)
jira-events at lists.jboss.org
Wed Jun 29 08:52:23 EDT 2011
[ https://issues.jboss.org/browse/ISPN-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611758#comment-12611758 ]
Galder Zamarreño commented on ISPN-1193:
----------------------------------------
This is a side effect of ISPN-1098. Before we did not used to send any reply at all for a DELETE+cache_name, so that resulted in the underlying web layer returning 204 which indicates that request succeeded but not response was returned. The right behaviour is to return 200. I'm making sure the testsuite verifies this and I'll update the docu. Whether to update the HTML docu in the webapp is being discussed in the forum link.
> 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.CR7
>
>
> 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 at 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 at 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: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list