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 267417

Summary: Wrong MIME type for Apache Conf file?
Product: editor Reporter: Tomas Mysik <tmysik>
Component: CSL (API & infrastructure)Assignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample Apache Conf file

Description Tomas Mysik 2016-08-03 07:57:01 UTC
Created attachment 161548 [details]
Sample Apache Conf file

Start with a clean userdir and open the attached file - its icon and support (lexer) is the expected one - support for Apache Conf files. However, if one opens IDE Tools > Options > Miscellaneous > Files and selects "conf" as an extension, incorrect MIME type is shown (text/x-yaml) [1]. This seems to me as a bug, hard to say where exactly :)

Thanks.
[1] The "culprit" of this incorrect registration is MIME resolver in javascript.jstestdriver module, I will try to fix it, see issue #267416.
Comment 1 Tomas Mysik 2016-08-03 09:38:09 UTC
BTW I have a fix for issue #267416 (will push it tomorrow) which solves this issue as well. So, of course feel free to close this report but if you are interested in the real cause of this issue, please use some older dev build.

Thanks.