At the moment the upload of dia-files (for flowcharts) is not possible in the OTRS-wiki. While the upload-formular says that »dia« is a allowed file-ending, the wiki denies the upload with a complain about the MIME-type »application/x-gzip«.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
To allow dia-files (for flowcharts) we need to whitelist x-gzip | operations/mediawiki-config | master | +2 -1 |
Related Objects
- Mentioned In
- rOMWCa2cc38ca489e: To allow dia-files (for flowcharts) we need to whitelist x-gzip
- Mentioned Here
- T6947: SVGZ (gzipped SVG) support
Event Timeline
Maybe https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php needs a change?:
# Dia Diagrams files --fred. $wgFileExtensions[] = 'dia'; // To allow OpenOffice doc formats we need to not blacklist zip files $wgMimeTypeBlacklist = array_diff( $wgMimeTypeBlacklist, array( 'application/zip' ) );
application/x-gzip seems not whitelisted, only application/zip
Change 188557 had a related patch set uploaded (by Steinsplitter):
To allow dia-files (for flowcharts) we need to whitelist x-gzip
Change 188557 merged by jenkins-bot:
To allow dia-files (for flowcharts) we need to whitelist x-gzip
This turns out not to be the case, as application/x-gzip is not blacklisted to begin with.
What's going on here is that a "compressed" dia file is really just a gzipped dia file, which is detected as "application/x-gzip" rather than "application/x-dia-diagram". This is technically correct, but not terribly helpful. It's also reminiscent of T6947.
If nothing else, you could uncompress your compressed dia files before uploading them.
So, my understanding of this is that you can upload .dia files, but if they're compressed then you hit a bug in MediaWiki? If that's correct we should close this.
I can not upload dia-files, because they are compressed by the dia-program by default (like in OpenOffice). You could say, that it is normal for them to be compressed.