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

HTTP job entry step doesn't pass the username and password that is required for authenticating to the REST API.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Urgent
    • Resolution: Not a Bug
    • Affects Version/s: 8.2.0.4 GA, 8.2.0 GA
    • Fix Version/s: 8.3.0 GA
    • Component/s: Job Entry
    • Labels:
    • Story Points:
      4
    • 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:
      BB-8
    • Steps to Reproduce:
      Hide

      Steps to Reproduce :

      • Start your Pentaho 8.2 server and Spoon client.
      • Connect to the repository.
      • Download the attached JOB file(call_simple_report.kjb) and save it.
      • Download the attached Test.zip file(contains prpt report and transformation acting as source to the prpt report).
      • Upload it to Public folder. Under public a new folder called Test is created which has the prpt report and transformation.
      • Open the Job and make changes to HTTP Client step. Change the URL to match your environment.
      • Right Click on the JOB --> Properties --> Parameters. Change the value of P_OUTPUT parameter to point to the folder on your local machine.
      • Run the job and try to open the PDF document which is created. You should see it does not open.
      • Open the PDF document in Notepad++ and you should see Pentaho Login HTML page.
      Show
      Steps to Reproduce : Start your Pentaho 8.2 server and Spoon client. Connect to the repository. Download the attached JOB file(call_simple_report.kjb) and save it. Download the attached Test.zip file(contains prpt report and transformation acting as source to the prpt report). Upload it to Public folder. Under public a new folder called Test is created which has the prpt report and transformation. Open the Job and make changes to HTTP Client step. Change the URL to match your environment. Right Click on the JOB --> Properties --> Parameters. Change the value of P_OUTPUT parameter to point to the folder on your local machine. Run the job and try to open the PDF document which is created. You should see it does not open. Open the PDF document in Notepad++ and you should see Pentaho Login HTML page.

      Description

      We are using HTTP Client Job step to call an API to generate a PDF output by calling generatedContent API call. HTTP Client step fails to pass username/password that is required to authenticate to the plaform and thus the output PDF that is getting generated is corrupt. When trying to open the PDF document using Adobe, we get the error as in attached screenshot. Opening the PDF document in Notepad++, we see Pentaho login page HTML within it. I have recorded a screencast showcasing the behavior.

        Attachments

        1. call_simple_report.kjb
          141 kB
        2. PDF_Error.PNG
          PDF_Error.PNG
          44 kB
        3. Recording #151.mp4
          5.79 MB
        4. Test.zip
          9 kB

          Activity

            People

            Assignee:
            moliveira Miguel Oliveira
            Reporter:
            nprakash Nikhil Prakash
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: