IG-REST changes JSON content when brackets without content are used
search cancel

IG-REST changes JSON content when brackets without content are used

book

Article ID: 407293

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

We discovered that the JSON body posted by the Integration REST agent (v24.0.1) is transmitted incompletely to the remote API when the content is empty.
This leads to unpleasant impacts.

By sending a POST request to https://httpbin.org/ the customer discovered that IG_REST changes the payload:

DEFINED:

{
  "feed": {
    "feed": "CURVES",
    "subfeed": "TPF_CURVE",
    "cob_date": "2025-05-22",
  "params": {} <--- empty
  },
  "message_args": {
    "priority": 50,
    "max_retries": 1,
    "retry_delay": 30
  }
}

SAVED to Report:

{
  "feed" : {
    "feed" : "CURVES",
    "subfeed" : "TPF_CURVE",
    "cob_date" : "2025-05-22",
  "params" : { } <--- notice the additional whitespace between the brackets
  },
  "message_args" : {
    "priority" : 50,
    "max_retries" : 1,
    "retry_delay" : 30
  }
}

RECEIVED by the HTTP server:

{
  "feed": {
    "feed": "CURVES",
    "subfeed": "TPF_CURVE",
    "cob_date": "2025-05-22",
  "params": ,  <-- notice the value '{}', CR ('\n') and closing bracket '}' disappeared
  "message_args": {
    "priority": 50,
    "max_retries": 1,
    "retry_delay": 30
  }
}

Cause

DE172054

Resolution

Solution:

Update to a fix version listed below or a newer version if available.


Fix version:

Component(s): IG-REST

IG-REST 24.1.1 - Planned release August 2025