For some unknown reason, the spool data retrieved using the REST Web API -
is returned "without" any newline characters in it. The spool file on the agent is perfectly formatted and no issues viewing directly on the agent.
The content-type requested is text/plain. Any clues as to what is missing in the api setup or parameter ?
The restful interface returns output in JSON format. This is normal for a restful interface.
Depending on what language the request is written in, the language may also have a JSON module to put it in a readable format.
The /spool endpoint for the REST API does not return JSON data. Its return type is "text/plain;charset=utf-8" as per the API documentation as well.
I can only think of the bug being inherent from CA development side itself and not in any API installation/config paramater.
FYI > https://docops.ca.com/ca-workload-automation-de-web-client/12-0-01/en/reference/rest-api#RESTAPI-HowtoAccessRESTAPIs
I am referring to the jobs/ID/spool call.
If the response content type requested is text/plain, the spool file should be in this format. We will look into this via the support case opened and reply to this thread.