WS-MAN has broken ForeignSourceConfigRestService and the requisitions UI doesn't work.

Description

ForeignSourceConfigRestService is the handler responsible for /opennms/rest/foreignSourcesConfig

That is the ReST end-point to obtain the available policies, detectors, categories, assets and services.

After the addition of the WS-MAN feature (specifically a detector), retrieving the detectors through ReST stopped working and throws a NPE.

If I remove the JARs for WS-MAN and restart OpenNMS, I can retrieve the detectors as usual without issues.

I figured out that when calling org.opennms.netmgt.provision.persist.ForeignSourceService.getDetectorTypes(), which is supposed to return a Map<String,String>, the key for the WS-MAN detector is not a string:

The expected information on that map, for a detector looks like this:

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Jesse White February 10, 2016 at 5:10 PM

Fixed in foundation-2016 with 308b57927d8af0d52691a47f38bbdcb161f9978b.

Alejandro Galue February 9, 2016 at 5:28 PM

Here is the end-point that is not working because of WS-MAN:

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created February 9, 2016 at 5:17 PM
Updated February 10, 2016 at 10:09 PM
Resolved February 10, 2016 at 5:09 PM