Re: PDF review add-on spams the server log

2014-10-14 Thread christ...@beanbaginc.com
Hi Alexey,

Looks like there's a bug where PDFMimetype is being tried for a file when it 
shouldn't be. We'll look into it.

Christian

--  
Christian Hammond - christ...@beanbaginc.com  
Review Board - https://www.reviewboard.org  
Beanbag, Inc. - https://www.beanbaginc.com

-Original Message-
From: Alexey Neyman 
Reply: reviewboard@googlegroups.com >
Date: October 14, 2014 at 12:30:05 PM
To: reviewboard@googlegroups.com >
Subject:  PDF review add-on spams the server log

> Hi,
>  
> We have logging enabled. Current log is mostly comprised of the PDF
> review ERROR messages that is emitted every time a non-PDF attachment is
> opened:
>  
> - Unable to load Mimetype Handler for : PDFMimetype:
> rejecting document because of incorrect extension
> Traceback (most recent call last):
> File
> "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.8-py2.6.egg/reviewboard/attachments/mimetypes.py",
>   
> line 157, in for_type
> return handler(attachment, mimetype)
> File
> "build/bdist.macosx-10.9-intel/egg/rbpowerpack/pdf/mimetypes.py", line
> 34, in __init__
> Exception: PDFMimetype: rejecting document because of
> incorrect extension
>  
> Again, this is normal operation - opening a non-PDF attachment. Why does
> it have to emit a message at ERROR severity?
>  
> Regards,
> Alexey.
>  
> --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups 
> "reviewboard"  
> group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to reviewboard+unsubscr...@googlegroups.com.  
> For more options, visit https://groups.google.com/d/optout.
>  

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


PDF review add-on spams the server log

2014-10-14 Thread Alexey Neyman

Hi,

We have logging enabled. Current log is mostly comprised of the PDF 
review ERROR messages that is emitted every time a non-PDF attachment is 
opened:


 - Unable to load Mimetype Handler for : PDFMimetype: 
rejecting document  because of incorrect extension

Traceback (most recent call last):
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.8-py2.6.egg/reviewboard/attachments/mimetypes.py", 
line 157, in for_type

return handler(attachment, mimetype)
  File 
"build/bdist.macosx-10.9-intel/egg/rbpowerpack/pdf/mimetypes.py", line 
34, in __init__
Exception: PDFMimetype: rejecting document   because of 
incorrect extension


Again, this is normal operation - opening a non-PDF attachment. Why does 
it have to emit a message at ERROR severity?


Regards,
Alexey.

--
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups "reviewboard" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.