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.
File object has method "getMIMEType()". This method called at mime resolving time. But file system does not delegate mime resolving to file object in two cases. First: MIMESupport.CachedFileObject does not call "getMIMEType()" for delegated file object. Second: DefaultDataObject.fixCookieSet() use first 2048 bytes of file object for implicit "text" mime resolving. This implicit mime resolving should be moved at mime resolving time or called just before editing file object. This is requirements of remote file system.
I've reported the FileUtil.getMIMEType problem as bug 199642 (at the same moment you reported this one). Let's track the problem there and let use this bug for the fixCookieSet problem.
As far as I can tell, the fixCookieSet is called only when you select the DefaultDataObject - e.g. it is not called while the DDO is being displayed.
Created attachment 109159 [details] An attempt to base the editorcookie presence just on mimetype
Does this still remain a problem? If so, please reopen.
(In reply to comment #4) > Does this still remain a problem? If so, please reopen. .. and WONTFIX ?
Second problem still exists. Method DefaultDataObject.fixCookieSet() is called when node is shown in favorites tree.
Created attachment 119398 [details] call stack of fixing cookies set for file with undefined MIME type (file name: names.rl)