Description

Getting or viewing *.svgz file(which is essentially a gzipped *.svg file) is broken. Browser shows following:

XML Parsing Error: not well-formed
Location: http://mydomain.com/mywiki/somepage?action=AttachFile&do=get&target=example.svgz
Line Number 1, Column 1:

Steps to reproduce

  1. Attach *.svgz file to some wiki page
  2. Try to view or get it

Example

Component selection

Details

After some disscussion on irc here is what seems to be correct:

This Wiki.

Workaround

import mimetypes
mimetypes.suffix_map['.svgz'] = '.svg.gz'

Discussion

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/SvgzAttachmentsDownloadBroken (last edited 2010-12-18 14:04:27 by ThomasWaldmann)