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.
Summary: | autoupdate does not work for update of global modules | ||
---|---|---|---|
Product: | platform | Reporter: | phamernik <phamernik> |
Component: | Autoupdate | Assignee: | rmatous <rmatous> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | anebuzelsky, mmirilovic, rmatous |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 106361 | ||
Attachments: | Possible bugfix |
Description
phamernik
2007-06-26 23:54:11 UTC
Created attachment 44436 [details]
Possible bugfix
Investigating possible problem... Checking in services/src/org/netbeans/modules/autoupdate/services/InstallManager.java; /shared/data/ccvs/repository/autoupdate/services/src/org/netbeans/modules/autoupdate/services/InstallManager.java,v <-- InstallManager.java new revision: 1.6.2.1; previous revision: 1.6 done Checking in ui/src/org/netbeans/modules/autoupdate/ui/Utilities.java; /shared/data/ccvs/repository/autoupdate/ui/src/org/netbeans/modules/autoupdate/ui/Utilities.java,v <-- Utilities.java new revision: 1.17.2.1; previous revision: 1.17 done Could you please verify this issue for the latest M10 build? Thanks. I run into the following issue: java.lang.IllegalArgumentException: Parameter file was not normalized. Was ./../foobar instead of /space/src/upg10/foobar/foobar at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:509) at org.netbeans.modules.autoupdate.services.InstallManager.getInstallDir(InstallManager.java:104) at org.netbeans.modules.autoupdate.services.InstallManager.findTargetDirectory(InstallManager.java:56) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.getTargetCluster(InstallSupportImpl.java:784) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.getDestination(InstallSupportImpl.java:566) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.getFileForInstall(InstallSupportImpl.java:745) at org.netbeans.modules.autoupdate.services.InstallSupportImpl.doCancel(InstallSupportImpl.java:446) at org.netbeans.api.autoupdate.InstallSupport.doCancel(InstallSupport.java:60) [catch] at org.netbeans.modules.autoupdate.ui.wizards.InstallUnitWizardModel.doCleanup(InstallUnitWizardModel.java:133) as I debugged the problem, it's because System.getProperty("netbeans.dirs") is set to: "./../foobar:./../ide8" on my application's installation. So when the InstallManager.getInstallDir passes relative File object to toFileObject, it fails. Actually I have no idea why there are relative paths, since the startup console message show absolute paths on the "Installation = " line. Suggest to add cluster = FileUtil.normalizeFile(cluster) at line 104 Jirka, Radek ... please look at this ASAP - it's M10 stopper! I've tried to reproduce it : - installed locally downloaded module to shared directory -> IDE started with this module - increase version of the same module and tried to update to this version -> IDE started with new version of module BTW: Is the problem reported by Svata the same as reported by Petr ? Svata, Petr - although suggested fix seems to be right and is very easy, I have a question - is it for you P1 reason for delaying M10? I'm not able achieve the state when System.getProperty("netbeans.dirs") return relative path. AFAIK also QA wasn't able to reproduce. I've created new issue #108499 "IllegalArgumentException during update of global modules". Suggested fix will be applied in frame of it. I also filled issue #108503 "System.getProperty("netbeans.dirs") returns relative path". This one I consider to be fixed. Agreed - verified in M10 candidate. QA was not able to reproduce. https://www.geometrydash.me/happy-wheels-unblocked.html |