Bug 349531

Summary: Determining file type by glob for some filename masks
Product: [Community] Bugzilla Reporter: Matěj Cepl <mcepl>
Component: Attachments/RequestsAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 2.17   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-06 15:36:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test none

Description Matěj Cepl 2007-10-23 20:54:26 UTC
Description of problem:
Being a bugmaster for the desktop two files we ask almost all reporters for
xorg-x11* components are /etc/X11/xorg.conf and /var/log/Xorg.0.log. Quite often
people don't call the attachments by this name, but they have different subtle
changes in the name of the attachment (like xorg-conf-hostname etc.) and in
almost cases, they don't select by hand, that the attachment is of the type
text/plain. The result of all this is that something like 80% of all attachments
are marked as application/octet-stream, which makes handling with them more
complicated (e.g., Firefox doesn't display them, but only downloads them).

Would it be possible to extend the mechanism for indicating type of attachments
so that default (of course, just default manually selected file types would not
be overriden) could be influenced by the list of file name masks which managers
of different components could extend. So for example, in my case I would say
that anything matching *Xorg*log* and *xorg*conf* would default to text/plain.

Does it make any sense?

Comment 1 Matěj Cepl 2008-02-06 15:36:20 UTC

*** This bug has been marked as a duplicate of 208714 ***

Comment 2 Matěj Cepl 2008-04-03 13:56:53 UTC
Created attachment 300250 [details]
test