You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2013/07/12 12:53:38 UTC

[Bug 55255] New: No Body in DELETE allowed

https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

            Bug ID: 55255
           Summary: No Body in DELETE allowed
           Product: JMeter
           Version: 2.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: immanuel.hayden@gmail.com

HI!

I have some API here that I would like to test which requires to pass along
content as the body of a DELETE request. Sadly that doesn't work right now in
JMeter it seems.

thx,
Imm

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] Allow Body in HTTP DELETE method to support API that use it (like ElasticSearch)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Date: Sun Jul 14 20:17:21 2013
New Revision: 1503047

URL: http://svn.apache.org/r1503047
Log:
Bug 55255 - Allow Body in HTTP DELETE method to support API that use it (like
ElasticSearch)
Bugzilla Id: 55255

Modified:
   
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
   
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
   
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java
    jmeter/trunk/xdocs/changes.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] Allow Body in HTTP DELETE method to support API that use it (like ElasticSearch)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

immanuel.hayden@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from immanuel.hayden@gmail.com ---
Hi!

Seems to work. Thx for the awesomely fast response time :)

br,
Imm

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] No Body in DELETE allowed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

--- Comment #4 from immanuel.hayden@gmail.com ---
> Next time you can put a summary of your researches.
My bad, should have done that. Will remember for next time :)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] No Body in DELETE allowed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

--- Comment #2 from immanuel.hayden@gmail.com ---
I am aware of what is written in the specs (did quite some research on the
topic myself, most specs simply dont mention it, the one you quoted just says
"yes, you can do it, it does not have any fixed syntax from our side, and no
guarantee it works with old implementations" (as in: sending a DELETE with body
to a server that does not support it ... but who would want to do that anyhow).

The stackoverflow link also gives an example of an API other than the one I
need to test that uses this,
http://www.elasticsearch.org/guide/reference/api/delete-by-query/

So in general I think it should be allowed to set a body for DELETE requests,
maybe to be considered together with 55256.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] No Body in DELETE allowed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
fully agree with you, I put the specs and SO links for us as a reference.
Thanks for report.
Next time you can put a summary of your researches.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] Allow Body in HTTP DELETE method to support API that use it (like ElasticSearch)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello Immanuel,
Waiting for your feedback to mark issue as closed.

You can try with next nightly build (r1503047) that should be very close to
2.10 version.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] Allow Body in HTTP DELETE method to support API that use it (like ElasticSearch)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

--- Comment #7 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Note this is implemented in HC4 and HC31 implementations not in Java one.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] Allow Body in HTTP DELETE method to support API that use it (like ElasticSearch)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|No Body in DELETE allowed   |Allow Body in HTTP DELETE
                   |                            |method to support API that
                   |                            |use it (like ElasticSearch)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] No Body in DELETE allowed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
           Hardware|PC                          |All
                 OS|                            |All

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
As per http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-19:

Bodies on DELETE requests have no defined semantics.  Note that
   sending a body on a DELETE request might cause some existing
   implementations to reject the request.



Other interesting links:
http://stackoverflow.com/questions/299628/is-an-entity-body-allowed-for-an-http-delete-request

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55255] Allow Body in HTTP DELETE method to support API that use it (like ElasticSearch)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55255

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

-- 
You are receiving this mail because:
You are the assignee for the bug.