Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-16128

REST Client step drops headers when making POST requests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7.0.0 GA
    • Fix Version/s: 8.1.0 GA
    • Component/s: Step
    • Labels:
      None
    • Environment:
      Ubuntu 16.04
    • Story Points:
      0
    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Sprint Team:
      Tatooine (Maint)
    • Steps to Reproduce:
      Hide

      1. Create a transformation that uses the REST Client step.
      2. In the "Headers" tab of the REST step, add one or more headers.
      3. Set the "HTTP method" to "POST".
      4. Run the transformation.

      Expected result: The rest call is made with the headers that were added.
      Actual result: The rest call is made, but it doesn't include the headers that were added.

      Show
      1. Create a transformation that uses the REST Client step. 2. In the "Headers" tab of the REST step, add one or more headers. 3. Set the "HTTP method" to "POST". 4. Run the transformation. Expected result: The rest call is made with the headers that were added. Actual result: The rest call is made, but it doesn't include the headers that were added.

      Description

      The calls work fine in Pentaho 6.1.0.1-196, so this only seems to be a problem in version 7. Logging the requests that are made shows that the following headers are set:

      User-Agent
      Host
      Content-Length
      Content-Type
      

      Any custom headers appear to be dropped.

      Also, the headers are only dropped for certain methods. They are included when making the following requests:

      GET
      HEAD
      OPTIONS
      

      They aren't included when making these requests:

      POST
      PUT
      

      This post on the forum also describes the issue:

      http://forums.pentaho.com/showthread.php?216466-V7-0-REST-Client-doesn-t-send-Header-parameters

        Attachments

          Activity

            People

            Assignee:
            eteixeira Emanuel Teixeira (Inactive)
            Reporter:
            dave David
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: