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

The ReST end point /foreignSourcesConfig/assets contains invalid fields

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Meridian-2016.1.2, 18.0.1
    • Fix Version/s: 18.0.2, Meridian-2016.1.3, 19.0.0
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      The end point in question is used to retrieve all the available fields of the OnmsAssetRecord entity. It does a simple class introspection to obtain all the getters.

      The problem is that it is including fields that are not supposed to be overridable like:

      • id
      • class
      • geolocation
      • node

      Those fields should be blacklisted or removed from the available list of fields prior return it to the client.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: