AutoSys Workload Automation

 View Only
  • 1.  Newlines stripped when retrieving spool through web api

    Posted Feb 04, 2019 06:59 AM

    For some unknown reason, the spool data retrieved using the REST Web API -

     

    ..............de/api/v1/jobs/JOBID/spool/

     

    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 ?



  • 2.  Re: Newlines stripped when retrieving spool through web api

    Posted Feb 04, 2019 08:21 AM

    Hi, 

    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. 

     



  • 3.  Re: Newlines stripped when retrieving spool through web api

    Posted Feb 04, 2019 09:42 AM

    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.



  • 4.  Re: Newlines stripped when retrieving spool through web api

    Broadcom Employee
    Posted Feb 04, 2019 10:46 AM

    Sanjeev,

    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.

     

    Thanks!