Search via AWI always return http status 401 and 200, no matter what had been searched
search cancel

Search via AWI always return http status 401 and 200, no matter what had been searched

book

Article ID: 100859

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

I am testing the search via REST API: https://localhost:8088/ae/api/v1/100/search 

After many attempts, I find out that no matter what I search or the result is found or not, in the JCP logs always have two http status 401 and 200: 

20180525/111606.265 - 35 U00045098 Method 'POST', URL: 'http://JCP_server_name:8088/ae/api/v1/100/search' 
20180525/111606.266 - 35 U00045099 The server replied with following status: '401' 
20180525/111606.513 - 35 U00045105 Log on of 'AE/AE' successful. 
20180525/111606.551 - 35 U00045098 Method 'POST', URL: 'http://JCP_server_name:8088/ae/api/v1/100/search' 
20180525/111606.552 - 35 U00045099 The server replied with following status: '200' 


Relate to what I read from https://docs.automic.com/documentation/webhelp/english/AWA/12.1/AE/12.1/REST%20API/ae_rest_api.html#client_id__search_post 

Http status 401 is stand for Unauthorized - the client lacks valid authentication credentials, i.e. you used a non-existing username/password. Also triggered if the authorization service is not available

Environment

Release:
Component: AAUTEN

Cause

New bug

Resolution

The issue was confirmed as a bug and will be fixed in Automation.Engine 12.1.3, Automation.Engine 12.2.0