【已评审】修改密码在弱口令字典中的错误描述格式

修改背景:

缺陷,设置用户SNMPv3加密密码在弱口令字典中,前端根据返回错误信息确定在不同操作框提示用户:

当前无论设置用户密码还是SNMPv3加密密码错误信息均是Password cannot be included in the weak password dictionary.,所以前端提示信息都会在“用户密码”操作框下

详细信息

错误引擎标识:PasswordInWeakPWDDict
变化类型:变更为动态参数
应用场景:用户设置用户密码、SNMPv3加密密码或者snmp团体名在弱口令字典中,抛出该错误

评审项 评审内容
消息名称 PasswordInWeakPWDDict
消息描述 Password cannot be included in the weak password dictionary.
消息体 %1 cannot be included in the weak password dictionary.
严重程度 Warning
参数个数 1
参数类型 [ “string”]
解决方案 Try again using a valid value.
HTTP状态码 400
IPMI完成码 0xFF
SNMP状态码 10
跟踪深度 0

修改点

错误消息描述由
Password cannot be included in the weak password dictionary.
变更为
%1 cannot be included in the weak password dictionary.

返回效果

通过WEB接口修改SNPMv3加密密码失败,密码在弱口令字典中,返回的错误信息为:
The snmp privacy password cannot be included in the weak password dictionary.

其他场景,修改用户密码、SNMP加密密码、SNMP团体名失败,密码在弱口令字典中,返回的错误信息为:
Password cannot be included in the weak password dictionary.

评审结论

同意错误PasswordInWeakPWDDict的消息描述增加动态参数,仅用于WEB修改SNMPv3加密密码出错的场景,其它接口和场景保持不变(消息描述内容保持不变)