camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aldo Bongio (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-7892) Unable to perform a restlet DELETE with no entity
Date Tue, 07 Oct 2014 15:00:35 GMT
Aldo Bongio created CAMEL-7892:
----------------------------------

             Summary: Unable to perform a restlet DELETE with no entity
                 Key: CAMEL-7892
                 URL: https://issues.apache.org/jira/browse/CAMEL-7892
             Project: Camel
          Issue Type: Bug
          Components: camel-restlet
    Affects Versions: 2.14.0
            Reporter: Aldo Bongio


The Restlet class
org.restlet.ext.httpclient.internal.HttpMethodCall.java
logs a warning in case a DELETE method call is performed with an entity, indicating that "The
current DELETE request provides an entity that may be not supported by the Apache HTTP Client
library. If you face such issues, you can still move to another HTTP client connector."

Unfortunately it seems impossible to force the Camel Restlet module to prepare a DELETE Restlet
Request with no entity. In fact the class
org.apache.camel.component.restlet.DefaultRestletBinding in its method populateRestletRequestFromExchange
always creates an entity. Instead it should set a null entity in case exchange.getIn().getBody()
is null.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message