Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7892

Unable to perform a restlet DELETE with no entity

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.12.4, 2.13.2, 2.14.0
    • Fix Version/s: 2.12.5, 2.13.3, 2.14.1, 2.15.0
    • Component/s: camel-restlet
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              aldo Aldo Bongio
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: