You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2015/02/16 11:28:18 UTC
[jira] (MRM-1799) Adding new mimetypes to archiva should be
configurable
[ https://jira.codehaus.org/browse/MRM-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated MRM-1799:
------------------------------
Fix Version/s: (was: 2.2.0)
2.2.1
> Adding new mimetypes to archiva should be configurable
> ------------------------------------------------------
>
> Key: MRM-1799
> URL: https://jira.codehaus.org/browse/MRM-1799
> Project: Archiva
> Issue Type: Improvement
> Components: WebDAV Interface
> Affects Versions: 2.0.0
> Reporter: Per Arnold Blaasmo
> Priority: Minor
> Fix For: 2.2.1
>
>
> Sometimes it is necessary to add a new mime type for a local installation.
> Doing this is currently done by:
> 1. edit the file WEB-INF/applicationContext.xml in the webapp folder by uncommenting:
> {code}
> <!--
> <bean name="mimeTpes" class="org.apache.archiva.webdav.util.MimeTypes">
> <property name="resource" value="archiva-mime-types.txt"/>
> </bean>
> -->
> {code}
> So you can use your own file.
> 2. Then Copy the original
> (http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/main/resources/org/apache/archiva/webdav/util/mime.types) to WEB-INF/classes/archiva-mime-types.txt and add or change a mime type line.
> This would be much easier if this could be configurable by beeing able to set the mime-types file in the achiva config file. And preferably being able to do it via the GUI.
> As a minimum we should be able to set the filename.
> As an advanced and possible future solution we could set and unset each line from that file.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)