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 10080 - Writable jar file in editor?
Summary: Writable jar file in editor?
Status: CLOSED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P4 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-08 10:20 UTC by Milan Kubec
Modified: 2003-07-01 15:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2001-03-08 10:20:04 UTC
If you mount filesystem with jar file in it, the jar file is not correctly
recognized and pop up menu for it will offer to convert it to text!!! Then you
can open that "text" file and edit!!! it in editor and then save!!!

Jar file was created from command line and by ant script. Also was tested if jar
file was copied into already mounted file system.
Comment 1 Jaroslav Tulach 2001-03-08 10:31:51 UTC
In my opinion that is a feature. But anyway why do you think this is a problem
in core?
Comment 2 Milan Kubec 2001-03-08 11:12:02 UTC
I don't think that it's a feature to allow user to modify and save binary file
(opened as text file), it could destroy users data at glance. I thought that it
is somehow connected with with filesystems, but I could be wrong.

Note: If you mount filesystem with "known" files, they are correctly recognized
and treated so. So why should we have different policy for java archives and let
users to modify them as text files.
Comment 3 Peter Zavadsky 2001-03-08 13:52:10 UTC
That's feature. Convert to text action appear on all default data objects, e.g.
all objects which no module dataLoader took over them. These default dataobjects
don't offer any functionality, therefore text module, if present, adds the
Convert to text action to them, to have some possiblity for user to work with
such files via IDE. Of course there is not recognition if the files are binary
or not. Its up to user to use it correctly, just like working with files on
disk.

In this case, it doesn't mean that jar file wasn't recognized. JarPackager tooks
only over .jar files with .jarcontent (default set) sibling file. So in this
case probably only .jar without .jarcontent was present so no DataLoader took it
but DefaultDataLoader.

Therefore I marked the issue as WONTFIX.
Comment 4 Quality Engineering 2003-07-01 15:15:29 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 15:16:58 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.