Usually when users attach .log files the mimetype gets set to text/x-log, Firefox doesn't open that mimetype like it does with text/plain, this is a major annoyance as anyone who wants to examine the log will have to change the mimetype in the Details of the attachment, or download it to view it with any text editor. LpSolit suggested installing an extension that converts text/x-log to text/plain in bugzilla server side (he also said this extension is used in the Mozilla Bugzilla). The extension: http://bzr.mozilla.org/bugzilla/extensions/typesniffer/trunk/files it'll need File::MimeInfo::Magic and IO::Scalar to work.
CC: (none) => LpSolit
We have a few choice : - do a bzr checkout - import the code in our svn It should be easy to get it going.
CC: (none) => misc
Note that the extension would need to be modified a bit, but it's trivial to do.
(In reply to comment #2) > Note that the extension would need to be modified a bit, but it's trivial to > do. Having enough time to do it is less trivial, I guess. This wasn't done yet, was it?
CC: (none) => marja11
(In reply to comment #0) > Usually when users attach .log files the mimetype gets set to text/x-log, > Firefox doesn't open that mimetype like it does with text/plain, this is a > major annoyance as anyone who wants to examine the log will have to change the > mimetype in the Details of the attachment, or download it to view it with any > text editor. > > LpSolit suggested installing an extension that converts text/x-log to > text/plain in bugzilla server side (he also said this extension is used in the > Mozilla Bugzilla). > > The extension: > http://bzr.mozilla.org/bugzilla/extensions/typesniffer/trunk/files > it'll need File::MimeInfo::Magic and IO::Scalar to work. @ Frédéric @ Dexter Will this extension be needed in Bugzilla 4, too?
(forgot to cc D morgan)
CC: (none) => dmorganec
Status: NEW => ASSIGNEDCC: (none) => boklm
(In reply to comment #4) > Will this extension be needed in Bugzilla 4, too? Yes, the MIME type detection didn't change between 3.6 and 4.0.
CC: mageia-webteam => rdalverny
CC: rdalverny => (none)
This feature has been implemented in Bugzilla 4.4. It will be a single line of code to convert text/x-log to text/plain.
(In reply to Frédéric Buclin from comment #7) > This feature has been implemented in Bugzilla 4.4. It will be a single line > of code to convert text/x-log to text/plain. which we have now, closing.
Status: ASSIGNED => RESOLVEDResolution: (none) => FIXED
CC: boklm => (none)