mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[235284][dstore] Cancel password change causes problem
https://bugs.eclipse.org/bugs/show_bug.cgi?id=235284
This commit is contained in:
parent
09758be2bc
commit
17ff5fc373
2 changed files with 21 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
* David McKnight (IBM) - [220892][dstore] Backward compatibility: Server and Daemon should support old clients
|
||||
* David McKnight (IBM) - [225507][api][breaking] RSE dstore API leaks non-API types
|
||||
* David McKnight (IBM) - [226561] [apidoc] Add API markup to RSE Javadocs where extend / implement is allowed
|
||||
* David Dykstal (IBM) [235284] Cancel password change causes problem
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.core.client;
|
||||
|
@ -121,6 +122,9 @@ public class ClientConnection
|
|||
public final static String CLIENT_OLDER = "Older DataStore Client."; //$NON-NLS-1$
|
||||
public final static String INCOMPATIBLE_PROTOCOL = "Incompatible Protocol."; //$NON-NLS-1$
|
||||
public final static String CANNOT_CONNECT = "Cannot connect to server."; //$NON-NLS-1$
|
||||
|
||||
// TODO: should probably make this a public constant in 3.1
|
||||
private final static String INVALID_DAEMON_PORT_NUMBER = "Invalid daemon port number."; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Creates a new ClientConnection instance
|
||||
|
@ -782,6 +786,11 @@ public class ClientConnection
|
|||
result = new ConnectionStatus(false, e, true, mgr.getUntrustedCerts());
|
||||
return result;
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
e = new IllegalArgumentException(INVALID_DAEMON_PORT_NUMBER);
|
||||
result = new ConnectionStatus(false, e);
|
||||
return result;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
if (_launchSocket != null)
|
||||
|
@ -817,6 +826,10 @@ public class ClientConnection
|
|||
{
|
||||
result = new ConnectionStatus(false, uhe);
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
e = new IllegalArgumentException(INVALID_DAEMON_PORT_NUMBER);
|
||||
result = new ConnectionStatus(false, e);
|
||||
}
|
||||
catch (IOException ioe)
|
||||
{
|
||||
result = new ConnectionStatus(false, ioe);
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
* David McKnight (IBM) - [235756] [dstore] Unable to connect to host with SSL via REXEC
|
||||
* David McKnight (IBM) - [244116] [dstore][daemon][ssl] Connecting to RSE server doesn't complete when the connection is SSL
|
||||
* David McKnight (IBM) - [233160] [dstore] SSL/non-SSL alert are not appropriate
|
||||
* David Dykstal (IBM) [235284] Cancel password change causes problem
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.connectorservice.dstore;
|
||||
|
@ -754,7 +755,13 @@ public class DStoreConnectorService extends StandardConnectorService implements
|
|||
}
|
||||
|
||||
SystemMessage message = createSystemMessage(msgId,IStatus.ERROR, pmsg, pmsgDetails);
|
||||
getCredentialsProvider().repairCredentials(message);
|
||||
try {
|
||||
getCredentialsProvider().repairCredentials(message);
|
||||
} catch (OperationCanceledException e) {
|
||||
_isConnecting = false;
|
||||
clientConnection = null;
|
||||
throw e;
|
||||
}
|
||||
newCredentials = (SystemSignonInformation) getCredentialsProvider().getCredentials();
|
||||
launchStatus = changePassword(clientConnection, oldCredentials, serverLauncher, monitor, newCredentials.getPassword());
|
||||
launchMsg = launchStatus.getMessage();
|
||||
|
|
Loading…
Add table
Reference in a new issue