• 
      

    Fix an exception in the API when accessing file attachments without review UIs.

    Review Request #5032 — Created Nov. 27, 2013 and submitted

    Information

    Review Board
    release-1.7.x

    Reviewers

    Fix an exception in the API when accessing file attachments without review UIs.

    The thumbnail field in FileAttachment was accessing the review_ui without first
    checking it for None-ness. Trivial fix.

    
     
    chipx86
    1. Can we get a unit test for this, to ensure it stays fixed?

      1. We don't have equivalent tests for the other methods which have this if/else pattern, and it would be a somewhat fragile test given that at any point, a review UI could be added for whichever mimetype I choose.

    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-1.7.x (bce2d40).