[dna-issues] [JBoss JIRA] Commented: (DNA-402) Update MIME type based on file extensions
Randall Hauch (JIRA)
jira-events at lists.jboss.org
Wed May 13 12:33:46 EDT 2009
[ https://jira.jboss.org/jira/browse/DNA-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12467265#action_12467265 ]
Randall Hauch commented on DNA-402:
-----------------------------------
The previous mechanism for specifying the extensions for MIME types was a property file. This format is not the conventional way systems typically have this information formatted; usually it is a *nix-style tab-delimited file with the mime type followed by whitespace (usually tab) followed by any applicable extensions. Therefore, the property-file approach was changed to support these *nix-style files directly, though property file formats are still allowed (delimited by '=' rather than whitespace). A regular expression is used to process each line, so the code works with both file formats. Changed the name of the resource/classpath file used for the defaults from "MimeTypes.properties" to "mime.types", and changed this file accordingly.
> Update MIME type based on file extensions
> -----------------------------------------
>
> Key: DNA-402
> URL: https://jira.jboss.org/jira/browse/DNA-402
> Project: DNA
> Issue Type: Task
> Components: Graph
> Reporter: Randall Hauch
> Assignee: Randall Hauch
> Priority: Minor
> Fix For: 0.5
>
>
> The Apache web server has a file with many common MIME types and the file extensions commonly used: http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
> Check that we have these registered. Perhaps we should have a class that generates the properties file from this (widely-used) format.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the dna-issues
mailing list