Incorrect BackupJobStatus returned by GetBackupJobReport.do
Product Version
Operating System
Symptom
Incorrect backup job status is returned when calling the GetBackupJobReport.do and GetBackupJobReportSummary.do API for backup jobs performed with AhsayOBM / ACB version 7.
"BS_BACKUP_NOT_FINISHED" is always returned as the value for "BackupJobStatus", which is incorrect. For example:
API call: GetBackupJobReportSummary.do
JSON Post:
{
"SysUser":"system",
"SysPwd":"system",
"LoginName":"username",
"BackupSetID":"backupset_id",
"BackupJobID":"YYYY-MM-DD-hh-mm-ss"}
JSON Return:
{
"Status": "OK",
"Data": {
"NumOfUpdatedPermissionFiles": 0,
"NumOfUpdatedFiles": 0,
"MissedPublicFolder": "",
"NumOfCopiedFiles": 0,
"NumOfNewFiles": 0,
"MissedDatabase": "",
"BackupJobStatus": "BS_BACKUP_NOT_FINISHED",
"TotalMovedFilesSize": 0,
...
Cause
This issue can occur if the "DestinationID" parameter was not provided when calling the GetBackupJobReport.do and GetBackupJobReportSummary.do API.
For backup job performed with AhsayOBM / ACB version 7.3.2.0 or above, the "DestinationID" parameter must be provided to get the correct return.
Resolution
Provide the "DestinationID" parameter when calling the GetBackupJobReport.do and GetBackupJobReportSummary.do API for backup job performed with AhsayOBM / ACB version 7.