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 267742 - Not ticking remember password still remembers password
Summary: Not ticking remember password still remembers password
Status: REOPENED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-29 04:30 UTC by brettryan
Modified: 2016-12-14 23:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2016-08-29 04:30:07 UTC
Steps to Reproduce
------------------

Create a new connection to a database (using h2 here) and specify a password but do not tick the "Remember Password" option.

Complete dialog and DB will be connected, disconnect it.

Reconnect. IDE does not ask for password.

Restart IDE and try again.


Expected Result
---------------

Any connection to a DB should request the password if not specified to be remembered.


Actual Result
-------------

IDE remembers password in current session. In new sessions the IDE will still try to establish a connection and give an "Unable to Connect" dialog.
Comment 1 matthias42 2016-08-29 09:18:36 UTC
This is intended. h2 and sqlite are both primary considered file based databases, that are to be used embedded and both allow connections without supplying a username.

This was changed in #218639 where for these two databases is opened without querying for the username/password. Feel free to suggest a different approach and reopen this.
Comment 2 brettryan 2016-12-14 23:55:07 UTC
Hmm, there's still a bug going on here.

If I create a connection first with a password, then I remove the password at the database level and then when I reconnect remove the password fromt he dialog, the IDE still remembers the original password and will always present the invalid creds dialog every time.

There is no way on the connection properties to change the password, just the user.