Change rest-api error to informational message if needed for /rest-api/changeReports/generate/all

Idea ID 1792844

Change rest-api error to informational message if needed for /rest-api/changeReports/generate/all

When running the rest-api to retrieve changes in a given view from one timestamp to another we should report an informational message instead of an error if the conditions result in no changes during a time period.  For example, with the JSON:

{

"dateFrom": "1558558800000",
"dateTo" : "1558645200000",
"viewName": "All My Windows Servers"

}

The message recieved is:

{"error": "The following error has occurred: Something went wrong. Please consult logs for more details"}

But, if you look in the rest-api log you see:

2019-05-24 23:53:32,577 [qtp1700134972-429] ERROR Failed to process request on changeReports: No changes found on view All My Windows Servers at the given time interval

 

So, it ran fine, but there were no changes.  Is this an error?

Tags (1)
1 Comment
Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes

Thank you for sharing your idea! It’s open for comments and kudos, and we’re looking forward to input from the community. Once there is enough community traction, it will be further reviewed by the product team

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.