The search page is not displaying the services correctly if Capsd is disabled

Description

Start OpenNMS with Capsd disabled and go to the search nodes page. The drop down list for "Provided Service" is empty. If some nodes are added through a requisition, the drop down list is still empty, even knowing that the service table on the database was populated.

I've noticed that NetworkElementFactory is caching the values returned by ServiceTypeDao, so when the content of the service table is changed, the search page is not reflecting those changes, and that is the reason of why the drop down list remain empty until the user restarts OpenNMS.

This problem was reported on support Ticket 1795.

Environment

OpenNMS installed with Capsd removed from service-configuration.xml

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Alejandro Galue November 28, 2012 at 10:47 AM

The fix for the problem has been merged into master branch.

Alejandro Galue November 28, 2012 at 9:41 AM

Fixed on revision 39c074dab4121667e86f7adc9076b950d7c9b0f7 for 1.10.

I've removed the caching variables and request the content of the service table through ServiceTypeDao every time this information is needed.

I tested the solution and now the search page is working as expected.

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

PagerDuty

Created November 28, 2012 at 9:30 AM
Updated January 27, 2017 at 4:21 PM
Resolved November 28, 2012 at 9:41 AM