Missing error check results in panic - apiserver

Bug #1881242 reported by Tim Penhey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Yang Kelvin Liu

Bug Description

apiserver/facades/agent/uniter/uniter.go:1560 (from juju-2.7.6 tag)
(*UniterAPI).ReadSettings

node, err = relUnit.Settings()
// XXX: missing error check here, dereferencing node causes panic.
settings = node.Map()

This occurred due to another bug (that is being filed), somehow we ended up with a relation that was in scope but missing settings document.

Changed in juju:
status: Triaged → In Progress
assignee: nobody → Yang Kelvin Liu (kelvin.liu)
Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

https://github.com/juju/juju/pull/11695 will be landed to 2.7 to fix this issue.

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.