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 25009 - Treat as text command causes java.io.IOException on file in Jar
Summary: Treat as text command causes java.io.IOException on file in Jar
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-20 20:57 UTC by Patrick Keegan
Modified: 2003-07-08 16:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file with the exceptions at the bottom (55.27 KB, text/plain)
2002-07-09 16:19 UTC, Patrick Keegan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Keegan 2002-06-20 20:57:12 UTC
I tried this on an *.hs and a *.jhm file (JavaHelp formats) in a JAR that I had mounted. Sorry if 
this is a duplicate (I thought it was already filed, but I couldn't find it).
Comment 1 Patrick Keegan 2002-07-09 16:19:36 UTC
Created attachment 6578 [details]
log file with the exceptions at the bottom
Comment 2 Marek Grummich 2002-07-22 11:38:25 UTC
Set target milestone to TBD
Comment 3 Miloslav Metelka 2003-03-14 17:17:34 UTC
The issue is now fixed by recent introducing of the attributes storage
in the  <jar-file>.nbattrs for each jar file mounted.

However it's true that there can still be cases when the file's
attributes will be readonly. For example if there is no .nbattrs file
in a readonly folder (with writable files) then the attempt for
.nbattrs creation fails. The problem is that AFAIK there is no API for
finding out whether particular fileobject can be assigned attributes
successfuly or not i.e. something like FileObject.canChangeAttributes().
Question for OPENIDE: Would it make sense to implement such API? As
its purely filesystem's choice to implement the attributes storage the
external clients are unable to find whether the storing of the
attributes is possible or not.
Comment 4 Patrick Keegan 2003-07-08 16:40:00 UTC
verified in 3.5 (works on an .hs file that is in a jar).