User Tools

Site Tools


public:5137_issue:incorrect_error_message_returned_when_calling_updatefilter.do_api_filter_name_is_already_in_use

ISSUE: Incorrect error message returned when calling UpdateFilter.do API (Filter name is already in use)

Article ID: 5137
Reviewed: 11/02/2016

Product Version:
AhsayCBS: Pre-7.7.0.0
OS: All platforms

Problem Description

Incorrect error message is returned when calling the UpdateFilter.do API to update settings of an existing backup filter.

"Filter name is already in use" is always returned with status error, which is incorrect. For example:

API call: UpdateFilter.do

JSON Post:
{
"SysUser":"system",
"SysPwd":"system",
"LoginName":"username",
"BackupSetID":"backupset_id",
"Name":"filter_name",
"ID":"filter_id",
"TopDir":"C:\\directory",
"Type":"DEFAULT",
"Include":false,
"Only":true,
"Apply2Dir":true,
"Apply2File":true,
"Patterns":[{"Pattern":".txt"},{"Pattern":".png"}]
}

JSON Return:
{
"Status":"Error",
"Message":"Filter name is already in use.",
"ExptType":"com.ahsay.obs.core.dbs.e"
}

Cause

This is a known issue with AhsayCBS version 7.5.0.0 - 7.5.0.6.

Important: Even with the error message displayed, the backup filter is actually updated correctly by the UpdateFilter.do API call.

Resolution

To resolve the issue, patch the AhsayCBS application to version 7.7.0.0 or above. The instructions can be found by Clicking Here.

Keywords

UpdateFilter.do, filter, backup-filter, exception

public/5137_issue/incorrect_error_message_returned_when_calling_updatefilter.do_api_filter_name_is_already_in_use.txt · Last modified: 2018/06/26 16:10 by mike.gong