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 61417 - Cannot cancel Connect action
Summary: Cannot cancel Connect action
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Libor Fischmeistr
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2005-07-26 16:29 UTC by Martin Schovanek
Modified: 2013-12-12 03:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch v1 (5.46 KB, patch)
2013-07-28 15:56 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2005-07-26 16:29:11 UTC
[#200507131800, jdk1.4.2]

to reproduce:
-------------
1) right click a Database Connection node and chose Connect
2) enter User Name and Password
3) click OK button
NOTE: a connection progress bar appears
4) click Cancel button
NOTE: the Connection dialog disappears
ERROR: the *canceled* Connect action finishes successfully
Comment 1 Jiri Rechtacek 2009-07-01 07:57:19 UTC
Reassigned to new owner.
Comment 2 matthias42 2013-07-28 15:56:03 UTC
Created attachment 137913 [details]
proposed patch v1

The attached patch doesn't allow connection canceling, as the potentially long running operation (java.sql.Driver#connect) is not cancelable. Instead the cancel button in the ConnectionDialog is only usable to close this dialog while no connection is being established.

I also removed the cancel button from the case where only the connection progress is shown.
Comment 3 Libor Fischmeistr 2013-12-11 14:32:19 UTC
Patch applied: http://hg.netbeans.org/core-main/rev/88e0d4e707f7

Thank you for the patch.
Comment 4 Quality Engineering 2013-12-12 03:01:03 UTC
Integrated into 'main-silver', will be available in build *201312120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/88e0d4e707f7
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #61417: Cannot cancel Connect action