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 16218 - Settings are temporary lost after autoupdate
Summary: Settings are temporary lost after autoupdate
Status: CLOSED DUPLICATE of bug 16219
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-04 10:06 UTC by Marek Grummich
Modified: 2003-06-30 13:49 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 Marek Grummich 2001-10-04 10:06:27 UTC
Build 200110030100
Jdk1.3.1
How to reproduce:
1.Uninstall an Editor module
2.Use AutoUpdate for instalation of Editor module from Pilsen
3.Change some settings (Keyword's color, font size, ....) of Java Editor
4. Restart IDE
5. The default settings are used after restart

*** When you open a Options (Tools->Options) then user's setting are used ***
Comment 1 Martin Roskanin 2001-10-04 10:22:11 UTC
Reproduce:
1. change some property
2. uninstall editor
3. install editor
4. changed property is not restored.

The problem affects only properties that XML file already exists on disk.
XMLDataObject.Processor attached DO, and after reinstalling of editor,
DO is the same and it keeps the old editor class, with old classloader.
Comment 2 Marek Grummich 2001-10-04 12:46:10 UTC
I was told to raise a priority because this migth be a general issue
concerning settings.
Comment 3 _ ttran 2001-10-05 08:31:45 UTC
so if I understand it correctly then problems only happen if you go
from new version of the editor back to an older version.  They
wouldn't happen if the new version of the editor is never installed in
the first place.

Am I right?
Comment 4 Martin Roskanin 2001-10-05 08:45:04 UTC
The problem is that if you have a new editor installed and you will uninstall it its xml settings files 
still lives. And DO of these files are still attached to XMLDataObject.Processor. That's why if you again 
install editor, new instancess of editor's XMLDO.Processors aren't attached. Then XML settings files are 
invisible. I am working on it. The DO have to be deattached after editor uninstallation.
Comment 5 Martin Roskanin 2001-10-05 09:00:26 UTC
So only these settings are lost, that are setted after uninstall/install operation.
Comment 6 Martin Roskanin 2001-10-05 13:00:52 UTC
It seems that problem is in openide.

This also affects Annotation Types (and probably other modules) . The problem is in xml entities 
resolvers.

For details see the bug #16265
Comment 7 Marek Grummich 2001-10-05 15:35:23 UTC
I've tried following:
I've took a new build (zip file) and removed all possible module from
<netbeans>/modules/ *.jar directory except for an autoupdate.jar and
next an appropriate *.xml from <netbeans>/system/Modules directory.
I'v got a build containg only IDE Core and AutoUpdate module.
When I installed editor and java module to IDE via AutoUpdate then the
behaviour was same as I described previously. The 3.3 editor never was
instaled into IDE.
Comment 8 Martin Roskanin 2001-10-05 16:15:47 UTC
Aha, thanks for that info.
Firstly I thought that problem you were depicted is affected by the bug #16265 that occurs after 
uninstallation of editor. But it seems that this is different one.

So you have the core+openide from NB 3.3 and java and editor from (Pilsen, say NB 3.2)

The settings in NB 3.2 aren't serialized via editor. Openide or projects do that. Now I am not sure where 
the problem should be, but definitely it is not in editor. In my opinion it could be problem of 
autoupdate, openide or projects.

Now I am reassiging this bug to autoupdate. (although it could be openide or project issue.)
Comment 9 akemr 2001-10-05 16:29:19 UTC
Not autoupdate bug. It's duplicate of #16219 IMHO.

*** This issue has been marked as a duplicate of 16219 ***
Comment 10 Marek Grummich 2002-10-14 11:25:05 UTC
Verified
Comment 11 Quality Engineering 2003-06-30 13:49:07 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.