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: | IDE enters endless restart loop if auto-update fails | ||
---|---|---|---|
Product: | platform | Reporter: | RyanOlson <ryanolson> |
Component: | Autoupdate | Assignee: | Petr Hrebejk <phrebejk> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
RyanOlson
2003-06-12 17:21:40 UTC
*** Issue 33725 has been marked as a duplicate of this issue. *** Fixed in trunk (and for nevada patch 1). Deleting the file if found empty and letting it be regenerated (by the code already in place): Index: UpdateTracking.java =================================================================== RCS file: /cvs/autoupdate/libsrc/org/netbeans/updater/UpdateTracking.java,v retrieving revision 1.9 diff -c -r1.9 UpdateTracking.java *** UpdateTracking.java 19 Dec 2002 04:21:38 -0000 1.9 --- UpdateTracking.java 29 Jul 2003 13:14:13 -0000 *************** *** 273,278 **** --- 273,287 ---- File file = new File( dir + FILE_SEPARATOR + TRACKING_FILE_NAME + FILE_SEPARATOR + getTrackingName( codename ) + XML_EXT ); + + // fix for #34355 + try { + if ( file.exists() && file.length()==0 ) + file.delete(); + } catch (Exception e) { + // ignore + } + if ( ! file.exists() ) { if ( create ) return new Module( codename, file, fromuser ); closed |