Bug 119173 - apache2: OpenOffice2 documents appear as zip-files to Internet Explorer
Summary: apache2: OpenOffice2 documents appear as zip-files to Internet Explorer
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Other (show other bugs)
Version: Alpha 1
Hardware: Other All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Ruediger Oertel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-28 07:41 UTC by Andreas Vetter
Modified: 2006-02-09 15:17 UTC (History)
4 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Vetter 2005-09-28 07:41:38 UTC
Apache2 serves OpenOffice_org2 document types as zip-files to the Internet
Explorer. Firefox is intelligent enough to use the suffix in that case.

How to reproduce:
Install apache2 and OpenOffice2.
Configure apache2 and start it.
Put some OpenOffice2 documents in, e.g. /srv/www/htdocs/users/
Open http://<machine>/users/<OOo2-document-name> in Internet Explorer.
Most of them will appear as zip-file, even if OOo2 is installed on the Windows
machine.

I think Apache2 has no information, what mime-type these documents are.
OpenOffice2 document types are not defined in /etc/apache2/*, but
/etc/mime.types is included.

In /etc/mime.types the document types of OpenOffice2 are missing. They are
defined in /usr/share/mime, but that does not help for apache2. 

So probably the Summary should be: missing mime-types for OOo2.
Comment 1 Martin Lasarsch 2005-09-28 09:51:46 UTC
i put all maintainers in cc: 
 
please decide who can fix this and assign the bug to yourself. 
 
thanks 
Comment 2 Stanislav Brabec 2005-09-29 09:45:33 UTC
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
Comment 3 Peter Poeml 2005-10-04 13:05:19 UTC
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?
Comment 4 Ruediger Oertel 2005-10-04 16:38:41 UTC
yes, iana is definitely the way to go. 
I'll try to get something into aaa_base to sync these files with upstream. 
 
Comment 5 Stanislav Brabec 2005-10-04 16:55:09 UTC
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.
Comment 6 Andreas Vetter 2005-10-11 18:31:19 UTC
The mime types are in
http://framework.openoffice.org/documentation/mimetypes/mimetypes.html
scroll down to the end for "Sample mime.types entries"
Comment 7 Andreas Vetter 2005-10-14 09:19:30 UTC
Same behaviour in Final release.
Comment 8 Ruediger Oertel 2005-10-14 10:08:45 UTC
yes. moving to 10.1 
 
Comment 9 Ruediger Oertel 2006-02-09 15:17:06 UTC
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 
Comment 10 Ruediger Oertel 2006-02-09 15:17:25 UTC
closing