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

The ReST end point /foreignSourcesConfig/assets contains invalid fields

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • Meridian-2016.1.2, 18.0.1
    • 18.0.2, Meridian-2016.1.3, 19.0.0
    • REST
    • Security Level: Default (Default Security Scheme)
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: