Fix a crash with the Changes API when unable to load a field type.

Review Request #7463 — Created June 26, 2015 and submitted

Information

Review Board
release-2.0.x
9ec235b...

Reviewers

If a change was made to a review request with a pluggable field, and
that field was no longer available (due to the extension no longer being
enabled), the code would fail, resulting in an HTTP 500.

We now check to make sure the field is there before including the
serialized contents in the payload.

I was hitting this problem locally. This fixed it.

reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/webapi/resources/change.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/webapi/resources/change.py
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (e6f78f1)
Loading...