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

PDI REST Client should not log a status 204 as an error.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.2.1 (4.1.0 GA Suite Release)
    • Fix Version/s: 5.1.0 GA
    • Component/s: Step
    • Labels:
      None
    • Environment:
      PDI 4.2.1
    • Story Points:
      2
    • 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:
      Pervach

      Description

      When using the REST client, an http status code 204 is being treated like an error. This does not effect the transform from running correctly, In this case processing a delete. The 204 is no content returned, which is a valid response.

      PDI returns:

      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : Because of an error, this step can't continue:
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : Can not result from [**REMOVED TO PROTECT CUSTOMER INFO**]
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : Client response status: 204
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : org.pentaho.di.core.exception.KettleException:
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : Can not result from [**REMOVED TO PROTECT CUSTOMER INFO**]
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : Client response status: 204
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) :
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : at org.pentaho.di.trans.steps.rest.Rest.callRest(Rest.java:193)
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : at org.pentaho.di.trans.steps.rest.Rest.processRow(Rest.java:389)
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:40)
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : at java.lang.Thread.run(Unknown Source)
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : Caused by: com.sun.jersey.api.client.UniformInterfaceException: Client response status: 204
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:528)
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:506)
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : at org.pentaho.di.trans.steps.rest.Rest.callRest(Rest.java:172)
      2012/02/01 13:27:00 - REST Client.0 - ERROR (version 4.2.1-GA, build 15926 from 2011-10-19 15.36.47 by buildguy) : ... 3 more

      NOTE: "*REMOVED TO PROTECT CUSTOMER INFO*" is not part of the error, but the error does contain server information.

        Attachments

          Activity

            People

            Assignee:
            jdorlus John Dorlus (Inactive)
            Reporter:
            wfaulkner William Faulkner
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: