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

Rest Step don't load parameter and header settings from repository

    XMLWordPrintable

    Details

    • 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.

      Description

      Rest step don't load header and parameter settings, cause the query of entry use false attribute names.
      The following patch resolve this issue:

      Index: src/org/pentaho/di/trans/steps/rest/RestMeta.java
      ===================================================================
      — src/org/pentaho/di/trans/steps/rest/RestMeta.java (revision 16871)
      +++ src/org/pentaho/di/trans/steps/rest/RestMeta.java (working copy)
      @@ -552,8 +552,8 @@
      trustStorePassword = rep.getStepAttributeString(id_step, "trustStorePassword");

      preemptive = rep.getStepAttributeBoolean (id_step, "preemptive");

      • int nrheaders = rep.countNrStepAttributes(id_step, "header"); //$NON-NLS-1$
      • int nrparams = rep.countNrStepAttributes(id_step, "parameter"); //$NON-NLS-1$
        + int nrheaders = rep.countNrStepAttributes(id_step, "header_field"); //$NON-NLS-1$
        + int nrparams = rep.countNrStepAttributes(id_step, "parameter_field"); //$NON-NLS-1$
        allocate(nrheaders, nrparams);

      for (int i = 0; i < nrheaders; i++)

        Attachments

          Activity

            People

            Assignee:
            sflatley Sean Flatley (Inactive)
            Reporter:
            onkeltom Tom Steinke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: