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

New issue 3427 by ra...@mt.com.tw: "ValueError: too many values to unpack" when upload a pdf file
http://code.google.com/p/reviewboard/issues/detail?id=3427

*** READ THIS BEFORE POSTING!
***
*** 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
to
*** secur...@reviewboard.org. Posting security-related issues to this bug
*** tracker causes us to have to do an emergency release.
***
*** For customer support, please post to reviewbo...@googlegroups.com
***
*** If you have a patch, please submit it to
http://reviews.reviewboard.org/
***
*** This bug tracker is public. Please check that any logs or other
information
*** 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/base.py", 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/models.py", 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/base.py", 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/mimeparse.py", 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

Attachments:
        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:
https://code.google.com/hosting/settings

--
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 reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to