Ensure extra_data is set before modifying it in the API.

Review Request #9907 — Created May 2, 2018 and submitted

chipx86
Review Board
release-3.0.x
1df1321...
reviewboard

When working with extra_data in the API, we assumed the version on the
object was a valid dictionary. If this was instead None, API requests
would fail. This could happen with very old objects, ones explicitly set
to None through a script/terminal, or if something went wrong when
setting up the object.

We now check for this and set it to {} before operating on it if
necessary.

Unit tests pass.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (788d0aa)
Loading...