Bug 24943 - update is detected on first run
Summary: update is detected on first run
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.0   Edit
Hardware: PC AIX Motif
: P3 normal (vote)
Target Milestone: 2.0.2   Edit
Assignee: Christophe Elek CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 24997 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-17 08:22 EDT by Grant Gayed CLA
Modified: 2002-10-23 14:17 EDT (History)
0 users

See Also:


Attachments
.metadata with "Launch Update Manager?" prompter showing (51.74 KB, application/octet-stream)
2002-10-17 14:30 EDT, Grant Gayed CLA
no flags Details
.metadata after Update Manager has been closed (52.12 KB, application/octet-stream)
2002-10-17 14:31 EDT, Grant Gayed CLA
no flags Details
output of running with -debug and all core update .options set to true (1.66 KB, text/plain)
2002-10-17 15:15 EDT, Grant Gayed CLA
no flags Details
second try (283.58 KB, patch)
2002-10-17 15:40 EDT, Grant Gayed CLA
no flags Details | Diff
.metadata/.log (10.95 KB, text/plain)
2002-10-17 16:12 EDT, Grant Gayed CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2002-10-17 08:22:59 EDT
1016 integration build, happens on aix ONLY

- unzip a new eclipse, start it
- "completing install" splash is shown
- workbench comes up, but then so does a dialog saying that changes have been 
detected and the Update Manager can be opened (problem)
  -> just out of interest I opened the Update Manager and it showed nothing
Comment 1 Dejan Glozic CLA 2002-10-17 08:47:13 EDT
Chirstophe, I guess this has been fixed in 2.0.2 stream and will be in HEAD 
when we merge, right?
Comment 2 Christophe Elek CLA 2002-10-17 09:07:39 EDT
no, seems related to bug 24942
Comment 3 Christophe Elek CLA 2002-10-17 13:16:36 EDT
Grant, can you confirm you reused an existing workspace ?
or was that a complete full new install ?
Comment 4 Grant Gayed CLA 2002-10-17 13:45:24 EDT
It was a completely new install, including new workspace.
Comment 5 Christophe Elek CLA 2002-10-17 14:07:18 EDT
sounds very strange, cannot reproduce on Windows even with 1016

Grant, can you paste the .metadata directory and tell us what is the command
line you used to start.

I will send you the new updatecore.jar from today. If you can retry to install
1016 and before you start replace updatecore.jar I would appreciate
Comment 6 Grant Gayed CLA 2002-10-17 14:29:10 EDT
This only happens on aix.  It doesn't happen on solaris or hpux (and assumedly 
not on linux and win32 either).

My start line is: ./eclipse -vm /usr/java131/jre/bin/java

I'll attach two zipped .metadata's:
  - The first shows its contents once the workbench has been brought up and 
the "Do you want to run the Update Manager?" prompter is showing.
  - The second shows its contents after saying Yes to this dialog and then 
pressing Cancel in the manager since it's empty.
Comment 7 Grant Gayed CLA 2002-10-17 14:30:46 EDT
Created attachment 2212 [details]
.metadata with "Launch Update Manager?" prompter showing
Comment 8 Grant Gayed CLA 2002-10-17 14:31:14 EDT
Created attachment 2213 [details]
.metadata after Update Manager has been closed
Comment 9 Grant Gayed CLA 2002-10-17 14:41:04 EDT
The problem still happens with the new updatecore.jar that was sent to me.
Comment 10 Christophe Elek CLA 2002-10-17 14:41:29 EDT
Hum, this is 2.1 code. Update hasn't released any code in 2.1 since 2.0.1 code
Definitly an issue though... but probably buried in core on AIX...

ok, can you copy .options from org.eclipse.update.core, change all values to
true, and run again with -debug

Sorry about the trouble of having you debug it.

PS: the JAR I sent will not help you
Comment 11 Christophe Elek CLA 2002-10-17 14:59:45 EDT
hum, should have added
cut and paste the output on the command line + the .log file 
Thanks
Comment 12 Grant Gayed CLA 2002-10-17 15:15:17 EDT
This scenario doesn't result in a .log file being generated in 
workspace/.metadata

I'll attach the output of running Eclipse with -debug after all core 
update .options have been set to true.
Comment 13 Grant Gayed CLA 2002-10-17 15:15:57 EDT
Created attachment 2216 [details]
output of running with -debug and all core update .options set to true
Comment 14 Grant Gayed CLA 2002-10-17 15:37:55 EDT
Sorry, I didn't copy the .options to the eclipse root directory.  The output I 
got this time was much more extensive.  I'll attach it.
Comment 15 Grant Gayed CLA 2002-10-17 15:40:18 EDT
Created attachment 2217 [details]
second try
Comment 16 Grant Gayed CLA 2002-10-17 16:11:38 EDT
Here's the .log that was generated...
Comment 17 Grant Gayed CLA 2002-10-17 16:12:48 EDT
Created attachment 2219 [details]
.metadata/.log
Comment 18 Christophe Elek CLA 2002-10-17 16:28:52 EDT
It seems there is a problem renaming the platform.cfg.temp into platform.cfg
file so the next time we try to save the platform.cfg.temp we seem to fail.

we need to fix
1) why it seems we cannot rename platform.cfg.temp into platform.cfg
2) even if we cannot save the platform.cfg, the LocalSite save() should not fail

I presume the log for bug 24997 would throw the same type of error. can you check ?

Next Step: reproduce here and fix
Comment 19 Grant Gayed CLA 2002-10-17 17:12:21 EDT
Note that I've attached the .log and -debug output spews to bug 24997 .
Comment 20 Christophe Elek CLA 2002-10-21 10:49:25 EDT
Unable to reproduce with 2.1 and 2.0.2

Install SDK-I20021018-aix and SDK-M20021018-aix 
Started and saw the 'completing install' then the Eclipse Splash Screen
The dialog about new updates doesn't show.

The error seems double and we need to resolve them both.
Contact Grant off line, try to reproduce with debug JAR file, post findings here
after...
Comment 21 Christophe Elek CLA 2002-10-22 14:33:10 EDT
*** Bug 24997 has been marked as a duplicate of this bug. ***
Comment 22 Christophe Elek CLA 2002-10-22 14:36:17 EDT
Released code where: if the platform.cfg cannot be renamed, the reconciliation
still occurs.
the LocalSite.xml will be written and no dialog should show up saying changes
have been detected.
Upon retstart the platform realizes there is no platform.cfg will look for
platfrom.cfg.tmp and find it.

Unable to reproduce, please download tomorrow's integration build and test (2.0.2)
Comment 23 Grant Gayed CLA 2002-10-23 14:17:56 EDT
Verified that this no longer happens in today's 2.0.2 maintainence build.