1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-16 04:35:45 +02:00
Commit graph

41 commits

Author SHA1 Message Date
Doug Schaefer
e97eb96c5d Bug 458583 Remote Services v2 API with UI, Local, and JSch updated.
v2 of Remote API. New Services architecture.

Connections are now stored in preferences and loaded by the framework.
Attributes are stored in the preferences. Secure attributes are stored
in the secure preferences. Remote services renamed to connection types.
Remote connections broken up into services. JSch and Local connection
types have been updated to new architecture.

Also moved the tests from core.tests to jsch.core.tests since they
are actually JSch tests and need to reference attribute names from
the jsch.core plug-in.

This is just phase one. Many more changes are expected to clean up
and to fix bugs this introduces.

Change-Id: I62ad2567b0c5ca7d277649879a8d16bec7058d5f
Signed-off-by: Doug Schaefer <dschaefer@qnx.com>
2015-02-13 12:33:30 -05:00
Greg Watson
5a627b8184 Bug 452757 - Handle null attribute values
Change-Id: I99be71f80f14ae0befafd003010e3130404ed578
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-12-03 15:00:40 -05:00
Roland Schulz
95db103e5b Support proxy connection for gateway without sftp or with MaxSession=1
Command proxy does not work if both the host and the gateway have MaxSession=1
(caused by 356657).

Add support in JschConnection for a connection which has a session but isn't
fully setup. Such a connection isn't considered open. And if it is opened after
it already has a session without setupFully=false (default), then all setup
setups are done.

Also change that getProxyConnection returns null not a LocalConnection for
a local command. This reduces the dependency on LocalConnection from within
jsch.core.*.

Change-Id: I64d05e69749d96248d2f40bd2db021d809cb04a9
2014-11-25 11:38:58 -05:00
Roland Schulz
b1903767f3 Bug 424627 - Fix password login with pubkey available
Put password the first in PreferredAuthentications so that password is
used when password is selected by the user.

Also
- remove the "File with private key" field
- remove the get/setKeyFile from the JSchConnection
- add a link to the network connections preference page
- swap the order of the public key/password areas
- make public key the default

Change-Id: I5aea011e41fd0097aa51b052ab1386d431362ec8
2014-11-13 12:04:07 -05:00
Greg Watson
a78deb1ffc Merge "Bug 449306: Unnecessary access to secure storage by JSchConnection " 2014-11-11 17:24:11 -05:00
Greg Watson
84c898f16a Bug 450350 - Change connection timeout default to 0
Change-Id: Ibbe79ec1555f33c8b14dc1a747bf310f162cfc8d
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-11-06 17:00:04 -05:00
Markus Schorn
c096be5127 Bug 449306: Unnecessary access to secure storage by JSchConnection
Change-Id: I7e2372e9e059b71d69676d6c0fe3aba71057a009
Signed-off-by: Markus Schorn <markus.schorn@windriver.com>
2014-11-04 14:42:28 +01:00
Roland Schulz
c563ea3f0e Bug 345329 - Add SSH proxy
Allows to connect over any ssh server as gateway or over any other
proxy by executing a local or remote command (such as netcat, corkscrew, ...).

Change-Id: I413c22cb588d8560d8db9ac877fb04f8331456aa
2014-10-17 12:29:45 -04:00
Roland Schulz
5ee4fa818a Cleanup some Jsch files
Source->Cleanup for files changed by child commit.

Change-Id: I787b623fc0832df3bf98cc1b89edc69f461235e2
2014-10-16 11:56:09 -04:00
Roland Schulz
d83bd777dc Bug 445425 - Fix username being deleted by interactive dialog
Change-Id: Ic46e937f6c8559971136fb4d37cb049747eae983
2014-10-13 23:04:43 -04:00
Greg Watson
db68d9779d Automatically open closed connection when performing FileStore
operations.

Change-Id: I26059d8be488c32722d5a25d75cb56fe1c0eb462
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-10-13 17:17:16 -04:00
Greg Watson
1296420f07 Update version to 1.1.1 2014-09-23 22:17:46 -04:00
Greg Watson
3860c54cc0 Bug 437560 - Add new API to return contents of text field
Change-Id: Ib14c69752e61ee7e03c37834f16923b5b41f16ef
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-08-14 15:27:53 -05:00
Greg Watson
52e01f7339 Bug 440993 - return a file store for #getStore(IPath)
Change-Id: I1f39423a8b667c001c8dec8e4914396546536e64
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-08-01 11:34:21 -04:00
Greg Watson
559dd99ea8 Merge "Bug 437083 - Improve error message if ssh fails" 2014-07-29 09:14:21 -04:00
John Eblen
69492aa8ea Bug 439607 - Can't delete directories from synchronized projects
Change-Id: I3b8a8aeef6200a92fd5623c259060c3031836809
Signed-off-by: John Eblen <jeblen@acm.org>
2014-07-15 14:00:11 -04:00
gwatson
e2705cfd34 Update version to 1.0.1 2014-06-26 14:48:05 -04:00
Roland Schulz
b511b31ad1 Bug 437083 - Improve error message if ssh fails
Execute loadEnv once before trying sftp to make sure exec works.
This way we don't assume it is an sftp problem if the ssh
connection doesn't work at all. To make this work throw an
exception if ExecCommand fails (if exit code != 0). ExecCommand doesn't
have a way to check exit code. Thus this also fixes that if any command
executed with ExecCommand failed, the calling code didn't notice.

Change-Id: I30b8baa0d87166e179fad67643e31a9f17c8ead2
Signed-off-by: Roland Schulz <roland@utk.edu>
2014-06-11 16:43:24 -04:00
Roland Schulz
407382d8af Bug 437083 - Connection error "session is down"
isOpen is expected to cleanup old sessions but didn't do so if fIsOpen
is false.

Change-Id: I65290d06eec51f65281c9f7eb16eba7e3bb5dcc9
2014-06-10 15:19:42 -04:00
Roland Schulz
f2a8c2053e Bug 428658 - fix keyboard-interactive authentication
Also removes unnecessary code for firstTry for password/
keyboard-interactive. And fixes firstTry for pubKey auth.
JSchConnection.newSession is storing the password with
session.setPassword. This password is used first before
jsch is using the UserInfo to prompt. Thus it isn't
necessary to return from the prompt first the same
stored password.

Change-Id: I17a4ae057fc595c2afe452c550bf47b70b696ef4
2014-06-09 08:32:57 -04:00
Greg Watson
dad71b863b Bug 428658 - Add a default Authenticator
Change-Id: I9e2e3ced3c1d3a0b9fb97e685d3836b586cc98a0
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-06-07 00:07:26 -04:00
Greg Watson
1b500f829b [429668] - Avoid race condition causing mkdir to fail.
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-03-21 13:18:32 -04:00
Greg Watson
3faf39df8d [429271] Fix for special characters in directory names (master branch)
Change-Id: Ib5ff490ec83dd4791cb01f6d1f85f5b0db189f77
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-02-27 18:55:49 -05:00
Greg Watson
28c493cbe7 Add prefix to progress monitor task
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-01-31 15:10:03 -05:00
Greg Watson
af665152e1 Improve progress messages for i/o stream operations.
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-01-31 08:20:48 -05:00
Greg Watson
acbd43742d Cleanup
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-01-27 18:15:25 -05:00
Greg Watson
7bd13e741b Don't buffer files in memory.
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-01-27 18:15:05 -05:00
Greg Watson
ba07d662e4 Correctly convert sftp time (seconds) to EFS time (milliseconds).
Signed-off-by: Greg Watson <g.watson@computer.org>
2014-01-17 10:50:56 -05:00
Greg Watson
290378c74a Enable connection timeout and connection cancelled message.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-12-18 08:46:21 -05:00
Greg Watson
49e6a62bb7 Improve tracing options.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-10-10 17:10:03 -04:00
Greg Watson
b1285fd555 Add tracing capability
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-10-10 10:09:44 -04:00
Greg Watson
bf1d7ccfe7 Fix file mode setting.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-10-09 16:27:54 -04:00
Greg Watson
3882867d49 Update execution environment to 1.6.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-10-07 16:18:15 -04:00
Greg Watson
da6ba5fc62 Improve progress monitor message.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-10-07 16:09:48 -04:00
Greg Watson
bfd74f8717 Fix incorrectly named packages.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-10-07 15:15:13 -04:00
Greg Watson
ec96e61198 Check for changes before opening connection.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-10-07 11:41:49 -04:00
Greg Watson
c22656936a [417810] - Fix support for specifying private key an passphrase.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-09-27 17:37:51 -04:00
Greg Watson
950f2d8bbb Ignore more build artifacts.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-09-23 09:42:05 -04:00
Greg Watson
c8f08a419f Various pom fixes.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-09-20 08:45:30 -04:00
Greg Watson
f01d8e3a10 Add repo and build dirs.
Signed-off-by: Greg Watson <g.watson@computer.org>
2013-09-20 08:32:02 -04:00
Greg Watson
484ed91c60 Move to subdirectories 2013-09-19 21:01:47 -04:00