===== [V7] ISSUE: Incorrect error message returned when calling UpdateFilter.do API (Filter name is already in use) ===== Article ID: 5137
Reviewed: 2016-02-11

Product Version:
AhsayCBS: Pre-7.7.0.0
OS: All platforms ATTENTION 1st January, 2022: v7 officially End-of-Life [details] ===== 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