[ 
https://issues.apache.org/jira/browse/MRM-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Stockhammer updated MRM-1799:
------------------------------------
    Fix Version/s:     (was: 2.2.2)
                   3.1.0

> Adding new mimetypes to archiva should be configurable
> ------------------------------------------------------
>
>                 Key: MRM-1799
>                 URL: https://issues.apache.org/jira/browse/MRM-1799
>             Project: Archiva
>          Issue Type: Improvement
>          Components: WebDAV Interface
>    Affects Versions: 2.0.0
>            Reporter: Per Arnold Blaasmo
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> 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.3.15#6346)

Reply via email to