Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-200

Fix functions 'header()' and 'headers()' when calling an automation operation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.18.0
    • Fix Version/s: 4.0.0
    • Component/s: Node.js

      Description

      When calling an automation operation, functions header() and headers() don't work, the passed HTTP header(s) are just ignore when the HTTP request is sent.

      The only way to provide HTTP header(s) is to pass it to the execute() function.

      See the attached javascript script to execute with the following command to see a demonstration of the issue (create the workspace /default-domain/workspaces/ws1 first):

      NODE_DEBUG=http node NXP_async.js
      

      You can see in the generated logs that the HTTP header nx-es-sync is sent only when passed to the execute() function.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: