Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-1799

Adding new mimetypes to archiva should be configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.0
    • 3.1.0
    • WebDAV Interface
    • None

    Description

      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:

        <!--
        <bean name="mimeTpes" class="org.apache.archiva.webdav.util.MimeTypes">
          <property name="resource" value="archiva-mime-types.txt"/>
        </bean>
        -->
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pablaasmo Per Arnold Blaasmo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: