search cancel

REST JOBS drops first character when using PUT_ATT

book

Article ID: 201744

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

If you are setting a body via a PUT_ATT for a REST JOBS, similar to:

:PUT_ATT request_part_0_requestTab_data_1 = '{ "object_name": "AE_REST_API.POST_EXECUTIONS.SCRI", "execution_option": "execute" }'

The request will fail, due to missing the initial brace:

2020-10-08 22:35:28       Request content:
2020-10-08 22:35:28        "object_name": "AE_REST_API.POST_EXECUTIONS.SCRI", "execution_option": "execute" }
2020-10-08 22:35:28       Sending request...

 

Cause

Improper handling of string within Agent

Environment

Release : 12.3

Component : RA WEBSERVICE REST

Resolution

This has been fixed as part of the RA WEBSERVICE REST 4.5.3 solution. 

Workaround: Prepend a non blank-space char (example: '{') at the JSON payload before using the PUT_ATT.