The ReST end point /foreignSourcesConfig/assets contains invalid fields

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.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Seth Leger September 15, 2016 at 3:23 PM

Merged into foundation-2016, marking as fixed.

commit 2e720fe4602684dd6a82dcdb2ce4d8c6a1250942

Seth Leger September 15, 2016 at 11:29 AM

This looks fine, I'm going to cherry-pick the commit into foundation.

Alejandro Galue September 8, 2016 at 2:40 PM

Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created August 19, 2016 at 4:00 PM
Updated September 15, 2016 at 7:23 PM
Resolved September 15, 2016 at 3:23 PM