• 
      

    Handle mimetype parse failures for file attachments.

    Review Request #7004 — Created March 3, 2015 and submitted

    Information

    Review Board
    release-2.0.x
    ad201a8...

    Reviewers

    This change adds some bullet-proofing around mimetype parsing in the base
    FileAttachmentReviewUI. We've fixed several problems like this already, but
    this one was still there.

    Manually changed the mimetype of an attachment to the one in listed in the bug
    ("CDF V2 document, No summary info") and looked at the review request. Saw that
    it was no longer broken.

    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/reviews/ui/base.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/reviews/ui/base.py
      
      
    2. 
        
    chipx86
    1. 
        
    2. reviewboard/reviews/ui/base.py (Diff revision 1)
       
       
       
       

      Is it worth logging the traceback here?

      1. I don't think so. The traceback is just going to be internal mimeparse code, and typically it's just a "ValueError: need more than 1 value to unpack"

    3. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.0.x (79d6e45)