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

REST Client step ignore Content-Type header

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Severity: Unknown
    • Resolution: Fixed
    • Affects Version/s: 8.0.0 GA
    • Fix Version/s: 8.2.0 GA
    • Component/s: Step
    • Labels:
    • 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)

      Description

      Many REST servers require custom content types to be sent to them. In particular W3C Semantic compliant data stores such as Allegrograph and MarkLogic Server. Their requests will require sending RDF data (E.g. application/x-nquads) and SPARQL queries (application/sparql-query).

      Currently in the Java code for the REST Client step only those content types in the Application drop down are supported. The code specifically overwrites any manually typed selection in the Application drop down. The underlying code also instructs Jersey to use only one of those mediaTypes listed, effectively ignoring the Content-Type header, if provided via the headers tab in PDI on the REST Client step.

      I have written and tested a fix against my working 8.0.0.0-R installation. This can be seen in this PR: https://github.com/pentaho/pentaho-kettle/pull/5301
      I have committed this change to master for the pull request, as I figured this is more helpful than committing it against the 8.0.0.0-R tag.

        Attachments

          Activity

            People

            Assignee:
            rrosinha Ricardo Rosinha
            Reporter:
            afowler Adam Fowler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: