Project

General

Profile

Bug #1354

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 2 years ago. Updated about 2 years ago.

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

0%

Estimated time:
Tags:
URL:

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.

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

History

#1 Updated by Dennis Roczek about 2 years ago

  • Category set to Plone

Also available in: Atom PDF