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 32769 - The import procedure has failed
Summary: The import procedure has failed
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Richard Gregor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-09 15:58 UTC by pzajac
Modified: 2003-04-15 07:35 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff of changes (7.60 KB, patch)
2003-04-14 08:44 UTC, Richard Gregor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2003-04-09 15:58:11 UTC
Netbeans build was installed from installer.
Settings were imported from Netbeans 3.4 in
installation. When the ide is runned with the
empty userdir the Import panel shows message "The
import procedure has failed" and "Start IDE"
button is enabled. No other panel was shown.
Comment 1 Marian Mirilovic 2003-04-09 17:03:38 UTC
Richard, 
can you look at it ? Thanks in advance.
Comment 2 Richard Gregor 2003-04-09 18:38:26 UTC
It doesn't look like problem of installer. Installer only inform ISW
where to find setings to import. It looks like that ISW knows that it
should import settings but has some problem. Form my point of view it
is problem of core upgrade.
Comment 3 Milan Kubec 2003-04-10 12:27:06 UTC
Did it happen really with 3.5 installer? I've seen this too, but with
dev installer.
Comment 4 pzajac 2003-04-10 13:23:56 UTC
Milan, it happens in nb35. 
Comment 5 David Konecny 2003-04-10 15:34:19 UTC
I'm skeptic about this but will look at it. There was no change
related to this issue in upgrade wizard, so I would say that if this
worked in previous version it should work now as well.
Comment 6 David Konecny 2003-04-11 09:27:45 UTC
The problem is in installer. Actually there are two problems. I was
using NetBeansIDE-release35-200304102350-win32.exe installer. 

The first problem is that installer for some reason copies system
directory from the old userdir into the new one. That's wrong! This is
task of Import Settings wizard.

The second problem is that file "upgrade.properties" (generated by
installer to NB3.5 installation folder) which contains information for
Import Settings wizard automatic upgrade are corrupted. It contains:

VERSION=null- User Directory
BACKUP_FOLDER=C:\Documents and Settings\dk125166\.netbeans\3.4

and as you can see the version is invalid. That's the reason why the
Import Settings wizard fails.
Comment 7 Richard Gregor 2003-04-11 09:43:51 UTC
Thanks for dicovery.
Copying system directory was consulted with Vita as I know when import
in installer was designed.
I'm investigating problem with version number. BTW Peter don't you
think it should be P1?
Comment 8 Richard Gregor 2003-04-11 10:03:56 UTC
Bad version is there only if user didn't run previuos version of IDE.
Version is read from ide.log.
Comment 9 Milan Kubec 2003-04-11 14:06:18 UTC
Raising prio, since it's likely that user will use -userdir argument
to change default userdir location and it fails.
Comment 10 Milan Kubec 2003-04-11 15:16:10 UTC
upgrade.properties file is created even if user doesn't do any import
during installation. Content of upgrade.properties which has been
created on my system without importing settings is:

VERSION=null- User Directory
BACKUP_FOLDER=null
Comment 11 Richard Gregor 2003-04-14 08:42:27 UTC
1) installer will not copy system dir form former userdir
2) installer will not detect userdirs without system/ide.log
   because such installation don't have an settings, weren't run
Comment 12 Richard Gregor 2003-04-14 08:44:49 UTC
Created attachment 9899 [details]
diff of changes
Comment 13 Richard Gregor 2003-04-14 08:48:17 UTC
Fixed in main trunk.

Checking in src/org/netbeans/installer/actions/DetectAction.java;
/cvs/installer/src/org/netbeans/installer/actions/DetectAction.java,v
 <--  DetectAction.java
new revision: 1.10; previous revision: 1.9
done
Checking in src/org/netbeans/installer/actions/ImportSettingsAction.java;
/cvs/installer/src/org/netbeans/installer/actions/ImportSettingsAction.java,v
 <--  ImportSettingsAction.java
new revision: 1.3; previous revision: 1.2
done
Checking in src/org/netbeans/installer/actions/WriteAction.java;
/cvs/installer/src/org/netbeans/installer/actions/WriteAction.java,v 
<--  WriteAction.java
new revision: 1.14; previous revision: 1.13
done
Comment 14 Martin Entlicher 2003-04-14 09:35:38 UTC
Diff reviewed without objections.
Comment 15 _ ttran 2003-04-14 11:38:56 UTC
I am waiting for verification....
Comment 16 Milan Kubec 2003-04-14 12:31:13 UTC
Fix verified on dev build installer, approved.
Comment 17 Marian Mirilovic 2003-04-14 12:48:12 UTC
Peter, can you verify, please , thanks :)
Comment 18 pzajac 2003-04-14 13:20:51 UTC
verified in trunk.
Comment 19 _ ttran 2003-04-14 13:22:41 UTC
approved for 3.5
Comment 20 Richard Gregor 2003-04-14 14:55:26 UTC
Fixed in release35.

Checking in src/org/netbeans/installer/actions/DetectAction.java;
/cvs/installer/src/org/netbeans/installer/actions/DetectAction.java,v
 <--  DetectAction.java
new revision: 1.7.2.2; previous revision: 1.7.2.1
done
Checking in src/org/netbeans/installer/actions/ImportSettingsAction.java;
/cvs/installer/src/org/netbeans/installer/actions/ImportSettingsAction.java,v
 <--  ImportSettingsAction.java
new revision: 1.2.2.1; previous revision: 1.2
done
Checking in src/org/netbeans/installer/actions/WriteAction.java;
/cvs/installer/src/org/netbeans/installer/actions/WriteAction.java,v 
<--  WriteAction.java
new revision: 1.11.2.2; previous revision: 1.11.2.1
done
Comment 21 dmladek 2003-04-15 07:35:30 UTC
For me it works with NetBeansIDE-release35-200304142350-win32.exe

so I'm glad I could verify it:-)