Clicking the search button on the Node Interfaces Gizmo causes strange 128 Interface to appear

Description

If you go to any node and click the search button in the Node Interfaces GWT component you always get a strange 128.167.119.25 interface to appear and that address does not exist in the DB.

Acceptance / Success Criteria

None

Attachments

3

Lucidchart Diagrams

Activity

Show:

Benjamin Reed March 15, 2012 at 3:05 PM

I think Seth fixed this when he did earlier work on the beanwrapper stuff in the 1.10 branch. I can't reproduce it with the current code, marking as fixed.

Seth Leger January 17, 2012 at 11:52 AM

Donald said that he saw a stack trace related to this and I think I tracked it down:

Donald Desloge December 19, 2011 at 10:07 AM

That would explain, why its broken in my GWT stuff since its all in 1.10.

Alejandro Galue December 19, 2011 at 10:01 AM

Donald,

I'm agree with you, actually the following REST query works with 1.8.x:
/opennms/rest/nodes/11/ipinterfaces?ipAddress=192&comparator=contains

But it does not work on 1.10.

Now, the following query works fine in both branches, so maybe something is missing in the code of OnmsIpInterfaceResource for 1.10:
/opennms/rest/nodes/11?ipInterface.ipAddress=192&comparator=contains

The only important difference between both branches is the handling of the IP address because of the IPv6 feature, I mean, in 1.8, the IP address is a simple String, but for 1.10, it is an InetAddress, so maybe that's why OnmsIpInterfaceResource fails.

Donald Desloge December 16, 2011 at 2:21 PM

Looking into this, someone must have broken the ipinterface rest call, you can't search based on IpInterface

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created November 15, 2011 at 4:53 PM
Updated January 27, 2017 at 4:21 PM
Resolved March 15, 2012 at 3:05 PM