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

Felix Meschberger resolved SLING-974.
-------------------------------------

    Resolution: Fixed
      Assignee: Felix Meschberger

Implemented this change in Rev. 775717.

The first file to be read is the META-INF/core_mime.types file which is a copy 
of the httpd project mime.types file, which we consider defining. The second 
file contains some SLING additions. Finally META-INF/mime.types files from 
other active bundles are added.

In addition, mime type mappings are not replaced by mappings from files read 
later in the queue to ensure that predefined mappings, mainly from the httpd 
project, are not replaced.

> Ensure official mime types cannot be overwritten by bundles and/or 
> configuration
> --------------------------------------------------------------------------------
>
>                 Key: SLING-974
>                 URL: https://issues.apache.org/jira/browse/SLING-974
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons MimeType
>    Affects Versions:  Commons Mime 2.0.4
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Commons Mime 2.0.6
>
>
> Currently the Mimetype service is implemented, such that any mime type 
> registration  overwrites any registration already existing. This may cause 
> third-party bundles or mime type providers to overwrite official mappings 
> from the core MIME type file.
> The service should be modified such, that :
>   * the core MIME type file is read first
>   * later mappings cannot overwrite existing mappings

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to