[VTN-47] FindBugs detected bugs in manager.neutron bundle. Created: 22/Oct/14 Updated: 03/May/18 Resolved: 23/Oct/14 |
|
| Status: | Resolved |
| Project: | vtn |
| Component/s: | VTN Manager |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Shigeru Yasuda | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2239 |
| Description |
|
FindBugs detected bugs in manager.neutron bundle. 1. OVSDBPluginEventHandler.getSwitchIdFromInterface() may cause NPE because it Port port = ovsdbConfigService.getTypedRow(node, Port.class, ovsdbConfigService.getRow(node, "Port", portId.toString())); 2. The following fields in OVSDBPluginEventHandler class should not be static
3. OVSDBPluginEventHandler.getSystemProperties() should close FileInputStream. try { File f = new File("configuration/vtn.ini"); String filepath = f.getAbsolutePath(); FileInputStream in = new FileInputStream(filepath); configProp.load(in); LOG.trace("loaded Integration bridge Configuartion details from vtn.ini"); } catch (Exception e) { 4. PortHandler.canModifyInterface() uses "==" operator to compare Boolean Boolean portAdminState = port.getAdminStateUp(); |
| Comments |
| Comment by Shigeru Yasuda [ 22/Oct/14 ] |
|
Patch for master: https://git.opendaylight.org/gerrit/12141 |
| Comment by Shigeru Yasuda [ 23/Oct/14 ] |
|
Patch for stable/helium: https://git.opendaylight.org/gerrit/12182 |