-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
2.0.6
I created an XML template and imported it. One of the SNMP LLD rules had a trailing whitespace after the OID that caused the rule to not discover anything. It also did not cause the rule to become "not supported."
Expected behavior (applied to SNMP OID field ONLY in Items and Discovery rules):
Leading and trailing whitespace should be ignored, both in the GUI and during XML import. Optionally, it should be automatically removed when the Item or Discovery rule is saved. It's a common, harmless mistake that can be safely corrected, rather than failing.
Whitespace anywhere else in this field should generate a failure. The GUI should refuse to save it, the API should reject any item.update or item.create, and the Import function should reject the import. There is no case where whitespace inside the OID field is valid.