Revision: 3870
Author: [email protected]
Date: Wed Aug 11 14:54:37 2010
Log: NEW - bug 2942: Test Connection with wrong password says the test is
succesful
http://trillian.sqlpower.ca/bugzilla/show_bug.cgi?id=2942
The issue was that if a valid connection has already been established, the
cookie store contains the server information. If you modify the password of
this connection and test it again, it would look in the cookie store. It
has been changed so that the cookie store is cleared every time Test
Connection is clicked.
http://code.google.com/p/power-architect/source/detail?r=3870
Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/ArchitectFrame.java
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/ArchitectFrame.java
Mon Aug 9 15:23:27 2010
+++ /trunk/src/main/java/ca/sqlpower/architect/swingui/ArchitectFrame.java
Wed Aug 11 14:54:37 2010
@@ -340,6 +340,11 @@
public void actionPerformed(ActionEvent e) {
String msg = "Unable to connect to server";
try {
+ // Clears the cookie store before testing the
connection
+ // in case an existing valid connection has
already been
+ // established.
+
ArchitectClientSideSession.getCookieStore().clear();
+
List<ProjectLocation> l =
ArchitectClientSideSession.getWorkspaceNames(
findPanel((JButton)
e.getSource()).getServerInfo());
@@ -1009,7 +1014,9 @@
// Enterprise stuff ...
enterpriseMenu = new JMenu("Enterprise");
- enterpriseLinkButton = enterpriseMenu.add(enterpriseLinkAction);
+ enterpriseLinkButton = new JMenuItem(enterpriseLinkAction);
+ enterpriseLinkButton.setText("Get Enterprise...");
+ enterpriseMenu.add(enterpriseLinkButton);
enterpriseMenu.add(openServerManagerAction);
openServerManagerAction.setEnabled(false);
enterpriseMenu.add(openProjectManagerAction);