Details
-
Bug
-
Resolution: Fixed
-
Critical
-
1.1 RC1
-
None
Description
On some systems (container specific) getMimeType return null for javascript files, causing a NPE in SkinAction#isJavascriptMimeType
A simple solution, which solves only the NPE, but not the real problem, is to use "javascript".equals(mimetype) instead of mimetype.equals("javascript").
A better solution would be to see why is null returned instead of the proper mimetype.
Attachments
Issue Links
- is related to
-
XWIKI-1691 Incorrect mimetype returned by engine.getMimeType
- Closed