Node ReST service cannot update geolocation information

Description

The way Hibernate deals with @Embedded entities is that if none of the columns have data, the embedded object is null, rather than empty.

The NodeRestService (and AssetRecordResource) do not assign the AssetRecord an OnmsGeolocation object before attempting to use a BeanWrapper to set properties on it, so it is impossible to add, say, longitude/latitude to a node's asset records.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed April 4, 2015 at 11:43 AM

Fixed in Foundation, cherry-picked to 15.0.2.

Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created April 4, 2015 at 11:42 AM
Updated April 4, 2015 at 11:43 AM
Resolved April 4, 2015 at 11:43 AM