Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9702

GenericResourceType is altering index names on class object initialization

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 21.0.0
    • Fix Version/s: 25.0.0
    • Component/s: Data Collection - XML
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Prior to v20, the original resource index string would be passed to such that any call to resource.getInstance() would return that string.

      For v20, changes were made so those strings are passed through GenericTypeResource.sanitizeInstance() to sanitize their values, by replacing whitespace, colon, backslash, and square brackets with underscores.

      This is causing problems for the new ObjectNameStorageStrategy which expects to be passed the original string, not the sanitized version.

        Attachments

          Activity

            People

            • Assignee:
              ronald.roskens@biworldwide.com Ron Roskens
              Reporter:
              ronald.roskens@biworldwide.com Ron Roskens
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: