Unique Flag is not working on Insight attributes with similar names

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 0

      Issue Summary

      This is reproducible on Data Center: (yes) / (no)

      When we have two different object types within the same or a different schema, and each one has a Unique labeled attribute with a similar name, the Unique feature is getting bypassed, allowing us to create new objects with duplicated values for that attribute.

      Steps to Reproduce

      1. Set up a new object schema with two object types;
      2. Give both object types an attribute, with the same spelling but different capitalization e.g. "attr" and "Attr";
      3. Set both to be labeled and Unique, and try creating objects in both of these object types. You should be able to bypass the uniqueness in one of the object types;

      Expected Results

      Objects should not be created for the same object Type using the same attribute value if the Unique flag was enabled for it.

      Actual Results

      Even if the Unique feature was enabled for these attributes, we can still create objects with the same attribute value.

      Workaround

      The workaround here would be to rename one of the attributes such that the it's same across all object types in all the schemas. Note: Attribute names are case sensitive, so Hostname and HostName aren't the same.

            Assignee:
            Unassigned
            Reporter:
            Rodrigo Silva
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: