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

Summary: Add 'ignorecase' attribute to file extention 'ext' mime-type
Product: platform Reporter: sproger1
Component: Data SystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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 
   <ext name="txt" ignorecase="true"/>
   <resolver mime="text/txt"/>

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.