|
Bugzilla – Full Text Bug Listing |
| Summary: | apache2: OpenOffice2 documents appear as zip-files to Internet Explorer | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE Linux 10.1 | Reporter: | Andreas Vetter <vetter> |
| Component: | Other | Assignee: | Ruediger Oertel <ro> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | asklein, pmladek, ro, sbrabec |
| Version: | Alpha 1 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Andreas Vetter
2005-09-28 07:41:38 UTC
i put all maintainers in cc: please decide who can fix this and assign the bug to yourself. thanks And what about generating of /etc/mime.types from Shared MIME Info
It is simple:
( shopt -s nullglob ; IFS="$IFS:" ; for dir in
${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/} ; do for file in
$dir/mime/packages/*.xml ; do sed -n 's/.*<mime-type
type="\([^"]*\).*/\1:/p;s/.*<glob pattern="\*.\([^"]*\).*/
\1/p;s:.*</mime-type>.*:#:p' $file | tr -d '\n' | tr '#' '\n' ; done ; done )
The only problem caused by this stupid script is:
application/x-tex-gf: *gf
Those mime types should be submitted upstreas (ftp://ftp.iana.org/assignments/media-types/) and added to /etc/mime.types (which our apache uses). -> Rudi? yes, iana is definitely the way to go. I'll try to get something into aaa_base to sync these files with upstream. IANA does not provide file suffixes, only list of types and short descriptions. And IANA does not care anout x-* MIME types. It would be better to use freedesktop.org. It is maintained and contains things you need. The mime types are in http://framework.openoffice.org/documentation/mimetypes/mimetypes.html scroll down to the end for "Sample mime.types entries" Same behaviour in Final release. yes. moving to 10.1 updated mime.types from dist/unpacked/i386.full with the script similar to comment #2 for dir in ${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/} ; do for file in $dir/mime/packages/*.xml ; do sed -n 's/.*<mime-type type="\([^"]*\).*/\1/p;s/.*<glob pattern="\*.\([^"]*\).*/ \1/p;s:.*</mime-type>.*:#:p' $file | tr -d '\n' | tr '#' '\n'r; done; done | sort -u closing |