Per Arnold Blaasmo created MRM-1799:
---------------------------------------

             Summary: 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


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to