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 146910 - Make "Save Password" checkbox checked for a connection if it is checked for a server
Summary: Make "Save Password" checkbox checked for a connection if it is checked for a...
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2008-09-11 11:17 UTC by Roman Mostyka
Modified: 2008-09-16 17:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-09-11 11:17:02 UTC
1. Rightclick "Databases" node and choose "Register MySQL Server...".
2. Enter necessary parameters, root user and password and check "Save Password" checkbox. MySQL server node will be added.
3. Expand it, rightclick some DB and choose "Connect".

Result: In appeared dialog "Save Password" checkbox isn't checked. But I saved password when I connected to MySQL server
and it is clear that I know password. And usually if user check this checkbox for the server, then user will check it
for all connections too. And there is no security reason why this checkbox isn't checked since password is known.
Comment 1 David Vancouvering 2008-09-11 16:38:37 UTC
I'm already fixing this with some other work.
Comment 2 David Vancouvering 2008-09-11 22:41:49 UTC
Proposed change is that we auto-connect with the MySQL user and password specified for the MySQL node.  The user can
always change these settings if they want to later.

This means the existing New Connection dialog that comes up when you choose Connect... doesn't come up - you're
auto-connected.  Also, when you create a new database, a New Connection dialog does not come up - you're auto-connected
instead.
Comment 3 Rob Englander 2008-09-11 22:56:12 UTC
I wonder if the only use case is that the connection would use the same user as the MySQL server node.  If that's not
the case changing this to auto connect would eliminate that opportunity.

Maybe there should be 2 actions?  Connect  and  Connect As...

Just s thought.

Also, didn't I make a partial fix for this so that the user doesn't need to enter the user name in the connection dialog.
Comment 4 Rob Englander 2008-09-11 22:57:21 UTC
Oh, sorry.  This is the follow on to my fix.  Nevermind.

But my point about the 2 actions remains.
Comment 5 David Vancouvering 2008-09-12 00:05:59 UTC
I was thinking it was reasonable to let people edit the connection once it's set up to use a different user.

I'm open to other's thoughts on this, though.
Comment 6 David Vancouvering 2008-09-15 19:27:47 UTC
6f01fd6db837
Comment 7 Roman Mostyka 2008-09-16 11:51:56 UTC
Verified with build 080916.
Comment 8 Quality Engineering 2008-09-16 17:35:35 UTC
Integrated into 'main-golden', will be available in build *200809161401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6f01fd6db837
User: David Van Couvering <davidvc@netbeans.org>
Log: #146910: Make "Save Password" checkbox checked for a connection if it is checked for a server