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 - Wrong MIME type for Apache Conf file?
Summary: Wrong MIME type for Apache Conf file?
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2016-08-03 07:57 UTC by Tomas Mysik
Modified: 2016-08-03 09:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Sample Apache Conf file (103 bytes, text/plain)
2016-08-03 07:57 UTC, Tomas Mysik

Note You need to log in before you can comment on or make changes to this bug.
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 :)

[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.