Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120732 - [bugstest] bugzilla does not detect attachment types
Summary: [bugstest] bugzilla does not detect attachment types
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Infrastructure
URL:
Whiteboard: [bugstest]
Keywords:
: 143564 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-28 08:25 UTC by Michal Suchanek
Modified: 2011-10-30 23:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Suchanek 2006-01-28 08:25:49 UTC
I tried attaching a file with autodetect type, and bugzilla marked it application/octet-stream.

File says it is ASCII text. If bugzilla cannot recognize that what is that "feature" about?

Either fix it or disable it so that it does not confuse people into thinking that bugzilla can detect the attachment types.
Comment 1 Jeffrey Forman (RETIRED) gentoo-dev 2006-02-06 13:54:08 UTC
What was the file's name you attempted to attach?
(In reply to comment #0)
> I tried attaching a file with autodetect type, and bugzilla marked it
> application/octet-stream.
> 
> File says it is ASCII text. If bugzilla cannot recognize that what is that
> "feature" about?

What was the file's name you attempted to attach?
> 
> Either fix it or disable it so that it does not confuse people into thinking
> that bugzilla can detect the attachment types.
> 
To be honest, taking a tone like this won't get you very far with me fixing it in bugzilla.

-Jeffrey
Comment 2 Michal Suchanek 2006-02-07 07:21:23 UTC
(In reply to comment #1)
> What was the file's name you attempted to attach?
> (In reply to comment #0)
> > I tried attaching a file with autodetect type, and bugzilla marked it
> > application/octet-stream.
> > 
> > File says it is ASCII text. If bugzilla cannot recognize that what is that
> > "feature" about?
> 
> What was the file's name you attempted to attach?
tst-key1.out - ascii text
failed.cc.bz2 - bzip2 compressed 
There are two .out.gz gzip files attached by somebody else as well. I suspect that application/octet stream is not something one would select manually.
ccCS59Rh.out.gz: gzip compressed data, was "ccCS59Rh.out", from Unix
ccVMKFeL.out.gz: gzip compressed data, was "ccVMKFeL.out", from Unix, max compression


> > 
> > Either fix it or disable it so that it does not confuse people into thinking
> > that bugzilla can detect the attachment types.
> > 
> To be honest, taking a tone like this won't get you very far with me fixing it
> in bugzilla.
Sorry about that. I find it quite annoying when half of all attachments end up application/octet-stream. At least I got that impression from the bugs I saw.

Is the file type related to the filename? If so where is it written? On GNU/Linux one would expect file type determinsd from the content. 

Where is the bugzilla documentation that would clarify that? The Docs link at the top points to generic Gentoo documentation. Is bugzilla manual hidden there somewhere or is it missing completely?

Thanks
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-07-05 10:09:43 UTC
@jforman: Is there an _easy_ way to disable the autodetect feature? Unless something changed in 2.22, I'd really prefer to force people select the type manually b/c the magic is very broken... 

If that's not possible, can it default to text/plain at least? That's what most of the attachements should be anyway, as we don't want tarballs and such. 
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-08-11 06:23:11 UTC
*** Bug 143564 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-11-16 03:27:34 UTC
Still borked on 2.22...

http://bugstest.gentoo.org/show_bug.cgi?id=155145
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-11-24 08:34:28 UTC
Can someone look into killed this broken autodetect feature on bugstest.g.o. and default to text/plain please? Drives me nuts.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-12-24 04:03:14 UTC
fixed in bugstest.
auto-detect is not offered anymore, and the default is now text/plain.