Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3427 by "ValueError: too many values to unpack" when upload a pdf file

*** You must complete this form in its entirety, or your bug report will be
*** rejected.
*** If you have a security issue to report, please send it confidentially
*** Posting security-related issues to this bug
*** tracker causes us to have to do an emergency release.
*** For customer support, please post to
*** If you have a patch, please submit it to
*** This bug tracker is public. Please check that any logs or other
*** that you include has been stripped of confidential information.

What version are you running?

1.7.5, but also reproducible on demo site (2.0.3)

What's the URL of the page containing the problem?

When view a review request (my.reviewsboard/r/xxxx/)

What steps will reproduce the problem?
1. Create a review request
2. Upload a PDF file

What is the expected output? What do you see instead?

File should be uploaded correctly, instead it return a 500 internal error

What operating system are you using? What browser?
Linux (Mint 16), Firefox 29.0

Please provide any additional information below.

I provide a pdf that cause the trouble.

I think the mimetype is wrong. If login admin to check file attachment, the mimetype is "text/text/application/pdf"

here is part of the log

[Thu Jun 19 10:21:06 2014] [error]     value = self._resolve_lookup(context)
[Thu Jun 19 10:21:06 2014] [error] File "/usr/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/template/", line 754, in _resolve_lookup
[Thu Jun 19 10:21:06 2014] [error]     current = getattr(current, bit)
[Thu Jun 19 10:21:06 2014] [error] File "/usr/lib/python2.7/site-packages/ReviewBoard-1.7.5-py2.7.egg/reviewboard/attachments/", line 32, in review_ui [Thu Jun 19 10:21:06 2014] [error] self._review_ui = FileAttachmentReviewUI.for_type(self) [Thu Jun 19 10:21:06 2014] [error] File "/usr/lib/python2.7/site-packages/ReviewBoard-1.7.5-py2.7.egg/reviewboard/reviews/ui/", line 168, in for_type [Thu Jun 19 10:21:06 2014] [error] mimetype = mimeparse.parse_mime_type(attachment.mimetype) [Thu Jun 19 10:21:06 2014] [error] File "/usr/lib/python2.7/site-packages/mimeparse-0.1.3-py2.7.egg/", line 38, in parse_mime_type [Thu Jun 19 10:21:06 2014] [error] (type, subtype) = full_type.split("/")
[Thu Jun 19 10:21:06 2014] [error] ValueError: too many values to unpack

        empty.pdf  8.1 KB

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to