Запрос на создание МО с указанием кодировки в Content-type ломает логику.
Steps to reproduce
- Постим запрос в /sa/managedobject/
{"port":0,"remote_path":"","syslog_source_type":"m","trap_source_type":"m","trap_community":"sdfjasdfsd","escalation_policy":"P","periodic_discovery_running_policy":"P","box_discovery_telemetry_policy":"P","cli_privilege_policy":"P","periodic_discovery_telemetry_policy":"P","syslog_archive_policy":"P","config_policy":"P","confdb_raw_policy":"P","interface_discovery_policy":"P","access_preference":"P","box_discovery_alarm_policy":"P","config_fetch_policy":"P","denied_firmware_policy":"P","address_resolution_policy":"P","box_discovery_running_policy":"P","cli_session_policy":"P","periodic_discovery_alarm_policy":"P","event_processing_policy":"P","autosegmentation_policy":"p","caps_discovery_policy":"P","vlan_discovery_policy":"P","periodic_discovery_telemetry_sample":0,"box_discovery_telemetry_sample":0,"fqdn":"","scheme":1,"time_pattern":"","bi_id":"","name":"555453534","address":"192.168.222.1","segment":"5aa67f40e3fb0f394b4ba182","object_profile":2,"pool":"5a21a43ce3fb0f1f59bbe487","shape":"","vc_domain":1,"vendor":"","platform":"","version":"","profile":"5a21a44de3fb0f1fca1b8f22","administrative_domain":1,"auth_profile":5,"vrf":1,"is_managed":true}
What is the current bug behavior?
В случае, если Content-type: application/json - получаем адекватный ответ В случае, если Content-type: application/json; charset=UTF-8 - получаем "{"status":false,"message":"Duplicated record"}"
What is the expected correct behavior?
Корректная обработка charset
Relevant logs and/or screenshots
Нету, выведено опытным путем.
./noc about
)
Paste NOC version (NOC version is: 19.4