This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257669 - Add 'ignorecase' attribute to file extention 'ext' mime-type
Summary: Add 'ignorecase' attribute to file extention 'ext' mime-type
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 8.2
Hardware: All All
: P4 normal with 1 vote (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-21 22:01 UTC by sproger1
Modified: 2016-01-21 22:02 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sproger1 2016-01-21 22:01:25 UTC
The current Mime-Resolver grammar does not support ignorecase on file extension. This makes no sense, since it supports ignorecase on the full file name, as well as on patterns/text in the file. 

This results in users having to add six separate entries in order to have a case insensitive (3 letter) file extension. i.e. *.txt, *.TXT, *.Txt, ....

i.e. It should support 
<file>
   <ext name="txt" ignorecase="true"/>
   <resolver mime="text/txt"/>
</file>


I propose adding support for a 'ignorecase' attribute on the 'ext' file mime type, while leaving the default behaviour as case sensitive if ignorecase attribute is not defined.

Most applications treat file extensions as case insensitive (*.txt vs *.TXT or *.PNG vs *.png....) so I find it hard to understand why all other attributes in the xml document support case-insensitive attribute, while file extension does not.