Project

General

Profile

Actions

Bug #1354

closed

Templates site: HTTP Content-Type for hosted templates is application/octet-stream instead of application/vnd.oasis.opendocument.text-template

Added by Michael Fiedler over 8 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plone
Target version:
-
Start date:
Due date:
% Done:

0%

Tags:

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

template-site-hosted.txt (14.1 KB) template-site-hosted.txt template file download from templates.libreoffice.org Michael Fiedler, 2015-07-01 13:30
apache-httpd-hosted.txt (22 KB) apache-httpd-hosted.txt template file download from an external Apache HTTPd webserver Michael Fiedler, 2015-07-01 13:30
Actions #1

Updated by Dennis Roczek over 8 years ago

  • Category set to Plone
Actions #2

Updated by Guilhem Moulin about 4 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
Actions

Also available in: Atom PDF