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.
1. Open "New Connection" dialog, type necessary parameters, but type wrong host and click "OK". IDE tried to connect to DB and "OK" button is disabled. 2. Change something in "New Connection" dialog. Result: Button "OK" becomes enabled, but previous attempt isn't finished. If click "OK" two connection processes will bu running and, at least for me, they won't ever finish.
This has a target milestone of 7.0 and isn't marked with 65fixes1-candidate. Should I address this issue or leave it.
Actually since it P2, I prefer to have fix for this issue in Patch 1. But if it is hard to fix till Patch 1 milestone, then you can change target milestone back to 7.0 and remove status whiteboard.
I think I'll be able to fix it. I was just confused because of the status whiteboard and target milestone. Thanks for updating it.
Roman, can you give me a database URL that you're using? I'm not able to reproduce this. I always get a failed connection dialog pretty quickly. Here's my understanding of the problem. When there is a long delay in attempting the connection, the user can actually modify fields and attempt another connection. That's bad. It sounds like a second problem is that there's no way to cancel a connection attempt. I don't think we should be allowing the user to do anything on the New Connection dialog while the connection is being established (or failing to be established). And I need to understand why you aren't getting a response indicating a failed connection.
Thanks to Roman for pointing me to a db that exposes this. My plan is to disable the form fields while the connection is being established. This will prevent the user from making another attempt while that process is underway. Cancel already works properly when there is properly only 1 connection attempt underway. The only question I have is "do we want to provide a better indication to the user that the connection attempt is underway?". My suggestion would be to embed a progress bar at the bottom of the dialog. But maybe we can leave that part as an enhancement for NB 7?
I like your idea. I filed appropriate ENHANCEMENT issue #151873.
563336a2beef
Integrated into 'main-golden', will be available in build *200810310201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/563336a2beef User: Rob Englander <mindstream@netbeans.org> Log: #151269 Disable user input on New Connection dialog while connection is being established.
Verified with build 081031.
I've transplanted the changeset http://hg.netbeans.org/main/rev/563336a2beef into release65_fixes repository as http://hg.netbeans.org/release65_fixes/rev/569165dda9dc
Oops correction: I've transplanted the changeset http://hg.netbeans.org/main/rev/563336a2beef into release65_fixes repository as http://hg.netbeans.org/release65_fixes/rev/f5e819675738