Summary: | BUGZILLA: attachments damaged during upload with auto-detect content type on | ||
---|---|---|---|
Product: | freedesktop.org | Reporter: | Rainer Bielefeld Retired <LibreOffice> |
Component: | Bugzilla | Assignee: | fd.o Admin Massive <sitewranglers> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | detective.conan.1412, LibreOffice, omcfadde, website |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Sample Document 1
attachment test: plaintext 10 bytes attachment test: plaintext 10 bytes, auto-detect OFF png icon - firefox from osx - autodetect png icon - firefox from osx - autodetect - apache restarted just incase python caching in place |
Description
Rainer Bielefeld Retired
2012-10-01 17:38:01 UTC
Created attachment 67938 [details]
Sample Document 1
I upload this document with auto-detect content detection, using Seamonkey.
Oops, some mess in step 4, please only regard att. with complete No.! I was able to reproduce with "Sample Document 1", original document has 9.888 bytes, the one I got back from Bugzilla has 9769 Bytes and can not be opened with LibO or AOOo (Text import filter appears). I see the same problem with Sample Document attachment 67958 [details] for Bug 55522, Changed size when I have downloaded the document again, Applications can not open downloaded att. document. Yesterday I also suffered from this problem from Firefox 15.0.1 on Windows 7, so promote this bug as NEW. It's in bug 55462. I tried to upload a screenshot there, *using AUTO-DETECT content type*. It was auto-detected correctly as image/png. But when I tried to open it in Firefox, it said the image is broken or somesuch (I can't remember it exactly). Uploading again (see bug 55462 comment 2) using auto-detect also gave same result. And again changing from .png to .jpg, with auto-detect; it correctly detected as image/jpeg, but also failed to display image. I downloaded all three uploaded files and found that, as stated in bug 55462 comment 4: > Bugzilla cut off first 4 bytes from .png image, and first 3 bytes from .jpg image. So, I tried again with Google Chrome on Windows XP, *without auto-detect content type*, and it worked. In conclusion, two possible reasons for this: * It's firefox (and firefox family) bug * It's bugzilla auto-detection bug I will try to differentiate in next comment ... (In reply to comment #4) > Yesterday I also suffered from this problem from Firefox 15.0.1 on Windows > 7, so promote this bug as NEW. Aw, mid-air collision with Rainer ;) And after reading Rainer's comment, I decided to leave it as-is. > In conclusion, two possible reasons for this: > * It's firefox (and firefox family) bug > * It's bugzilla auto-detection bug Oh, yes, thanks Rainer! The third reason might be a downloading bug. Created attachment 67964 [details]
attachment test: plaintext 10 bytes
This is an attachment upload testing. It is a plain text, containing 10 numeric characters, "0123456789", thus size = 10 bytes.
I upload this from Google Chrome on Windows XP, turning auto-detect ON.
Created attachment 67965 [details]
attachment test: plaintext 10 bytes, auto-detect OFF
Aha, my attachment was deleted!
Try again with same file, turning auto-detect OFF and select "plain text (text/plain)" from a dropdown list, which is default option, instead.
From Google Chrome on Windows XP
So, from comment 6-7, I would like to conclude that this is Bugzilla's auto-detect bug, and not others as suggested. Really promote this bug as NEW. Edit subject accordingly *** This bug has been marked as a duplicate of bug 55270 *** Ooops, a bit quick there, this doesn't appear to be a dupe after all. *** Bug 55531 has been marked as a duplicate of this bug. *** My guess is this and bug 55270 are certainly related Created attachment 67986 [details]
png icon - firefox from osx - autodetect
png icon - firefox from osx - autodetect
typesniffing plugin for bugzilla removed
Created attachment 67987 [details]
png icon - firefox from osx - autodetect - apache restarted just incase python caching in place
png icon - firefox from osx - autodetect - apache restarted just incase python caching in place
Test successful. Issue caused by typesniffing bugzilla extension. Bug closed |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.