Bug #1354
closedTemplates site: HTTP Content-Type for hosted templates is application/octet-stream instead of application/vnd.oasis.opendocument.text-template
0%
Description
[This problem may already be known, however, I could not find it in the list of issues here.]
When downloading templates from the templates site at templates.libreoffice.org, the HTTP Content-Type is not of a type that can be handled by LibreOffice such as application/vnd.oasis.opendocument.text-template
, but is a generic application/octet-stream
. Therefore, a browser such as Firefox cannot detect which application to use for opening the document template file. E. g. using Debian GNU/Linux 7.8 (wheezy) with Iceweasel/Firefox 31.7.0, Iceweasel wants to open the file using a text editor, which is not what a user wants it to do.
Steps to reproduce:
1. Visit a template project and download the template file
2. Iceweasel/Firefox tries to open it using a text editor instead of LibreOffice
Workaround:
The template creator can use an external URL for providing the files. Using e. g. an Apache webserver instance, the Content-Type filed is set correctly.
See also the attached files that show the HTTP/TCP stream captured using Wireshark for comparison between templates.libreoffice.org and an external Apache HTTPd.
Files
Updated by Guilhem Moulin over 5 years ago
- Status changed from New to Closed
Seems it's done already, though I don't know since when:
$ curl -so/dev/null --write "%{http_code} %{content_type}\\n" \ https://extensions.libreoffice.org/templates/calendar-creator/4.0/@@download/file/Calendar%20Creator.ots 200 application/vnd.oasis.opendocument.spreadsheet-template