Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-04-08 Thread reviewboard


Comment #12 on issue 3792 by nano...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

Hi David,

I can see _guess_mimetype is implemented using pipe and some chunks of  
input file


maybe it can help for you information

file --mime-type -b  ~/Downloads/CQ_03176_Test_Record.doc
application/msword

cat  ~/Downloads/CQ_03176_Test_Record.doc |file --mime-type -b -
application/CDFV2-corrupt

looks like our problem to guess mimetype

So maybe using file --mime-type -b path could fix most use case?

--
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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-04-08 Thread reviewboard


Comment #13 on issue 3792 by nano...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

https://pypi.python.org/pypi/python-magic/ could be an alternative to file  
--mime-type -b command but another python dependency :-(


--
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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-13 Thread reviewboard

Updates:
Status: Fixed

Comment #11 on issue 3792 by trowb...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

Fixed the remaining issues in release-2.0.x (a5b5133). Thanks!

--
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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-12 Thread reviewboard


Comment #10 on issue 3792 by raav...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

Completing the last line:
If you are unable to reproduce or more information is needed, please let me  
know.


Browser screenshot of attachment screen, that appears after ~20min of  
uploading .msg file.



Attachments:
2.0.14_attach_outlook_msg_browser_error_status.png  24.7 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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-12 Thread reviewboard

Updates:
Status: New

Comment #9 on issue 3792 by trowb...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

(No comment was entered for this change.)

--
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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-11 Thread reviewboard


Comment #8 on issue 3792 by raav...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

Hello,

Good morning.

I have tested the 2.0.14 release few minutes back.
Thank you for providing the quick fix.

Two observations from the tests:

1) Review is not broken and the same is accessible to users - Thanks for  
that.
2) I am still unable to attach the message taken out of Microsoft Outlook  
as an attachment 'as is'.


In the past the attachment upload is successful and breaks the post.
But now the attachment is failing to upload but doesn't break the post.

What is needed also is to enable the successful attachment upload without  
breaking the post.


I am attaching a sample .msg file that I have tried to attach in RB
Also the dubug trace from the reviewboard log.

may be you can reproduce the same in your environment using 'Test  
message.msg file.

If you are unable to reproduce

Please suggest.

Thanks, Ravi

Attachments:
2.0.14_msg_attach_error  3.3 KB
Test message.msg  20.5 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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-03 Thread reviewboard

Updates:
Status: Started
Owner: trowb...@gmail.com
Labels: Project-ReviewBoard Component-Attachments

Comment #6 on issue 3792 by trowb...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

(No comment was entered for this change.)

--
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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-02 Thread reviewboard


Comment #3 on issue 3792 by raav...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

As I have mentioned after analysis of both before and after migration is:

//
Before upgrade the RB version is 1.6.9 and the outlook message (Eg:  
outlook_message.msg) has the property of mimetype is:  
application/octet-stream - 1.6.9 was accepting outlook messages with this  
mimetype.


After the RB upgrade to 2.0.13 the mimetype is mentioned as CDF V2  
Document, No summary info

//

However, How do I trace the information browser--apache2--RB information  
flow?
PS: I don't see any apache error log related to this behavior at the moment  
of file upload fails.


Please suggest.

--
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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-02 Thread reviewboard


Comment #5 on issue 3792 by raav...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

DEBUG log in RB was enable since the upgrade took place. The same is  
attached in the text file. Please let me know if more/specific information  
is needed.


--
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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-02 Thread reviewboard


Comment #4 on issue 3792 by raav...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

This behavior is true even in Chrome version: 40.0.2214.115 m
Also in Firefox: 35.0.1  36.0
IEv8 doesn't even work to load dashboard - IEv8 usage completely ruled out  
- I guess.


Thanks, Ravi

--
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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-02 Thread reviewboard


Comment #1 on issue 3792 by raav...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

I wanted to know if there is a quick fix is available for this.
If not how do I stop uploading such extension before hand than corrupting  
posts.

Is there some possibility to block at Apache configuration level?

I have tried adding .msg extension against the  
line application/octet-stream  already in httpd.conf and restarted the  
httpd service.


Even then the problem remains same.

Any suggestion please?

Thanks, Ravi

--
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.


Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-02 Thread reviewboard

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

New issue 3792 by raav...@gmail.com: Outlook message (.msg extension)  
upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

*** 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.

I wanted to know if there is a quick fix is available for this.
If not how do I stop uploading such extension before hand than corrupting  
posts.

Is there some possibility to block at Apache configuration level?

Please follow the necessary information.

What version are you running?
ReviewBoard: 2.0.13
mimeparser: 0.1.3
Python: 2.7.8
Apache: 2.4.10

What's the URL of the page containing the problem?
After creating the review post, during file attachment procedure.
File upload, while updating the outlook message as an attachment the RB  
hangs ~30min and produces the attached error in .png file. Also the admin  
receives the information in text attachment.



What steps will reproduce the problem?
1. Create a new post

2. Attach a message from Microsoft outlook as it is as .msg extension.  
(hangs for a long time)

   Then produces the error as in attachment: rb_outlook_attach_error.png

3. Try to open the post, but doesn't open (while other posts are  
accessible) and produces the default 500 error only for the post that  
contain the .msg file extension as an attachment.


As user access to the post is broken and receives Error 500, however the  
admin can still access the corrupted post.


Something broke! (Error 500)

It appears something broke when you tried to go here. This is either a bug  
in ReviewBoard or a server configuration error. Please report this to your  
administrator


What is the expected output? What do you see instead?
After attempting to upload the outlook_message.msg, the screen shot is  
attached in .png file.


What operating system are you using? What browser?
RHEL 6.5 (Santiago)

Please provide any additional information below.

The mimetype property was found in the link: RB link  
root/admin/db/attachments/fileattachment/


Before upgrade the RB version is 1.6.9 and the outlook message (Eg:  
outlook_message.msg) has the property of mimetype is:  
application/octet-stream - 1.6.9 was accepting outlook messages with this  
mimetype.


After the RB upgrade to 2.0.13 the mimetype is mentioned as CDF V2  
Document, No summary info


The end result is the post is broken and not accessible, user has to  
generate the new post and publish without attaching the outlook_message.msg  
but in a different format.


So far this behavior is observed only with .msg extension.
other extensions like .txt .c .h .rtf .xlsx .htm .jpg and .sh are accepted  
by new  RB version: 2.0.13


Also giving the text attachment that is received in the email back to admin  
with error. (trimmed path information).



Attachments:
rb_outlook_attach_error.png  37.0 KB
error_in_email_back_to_admin_mailbox.txt  8.2 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.


Re: Issue 3792 in reviewboard: Outlook message (.msg extension) upload fails in 2.0.13

2015-03-02 Thread reviewboard

Updates:
Status: NeedInfo

Comment #2 on issue 3792 by trowb...@gmail.com: Outlook message (.msg  
extension) upload fails in 2.0.13

https://code.google.com/p/reviewboard/issues/detail?id=3792

Probably your browser is supplying a bad mimetype when sending the file.  
Would you be able to add some logging to find out what that mimetype is?


--
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.