MarketSquare / SSHLibrary

Robot Framework test library for SSH and SFTP
http://marketsquare.github.io/SSHLibrary/
Other
157 stars 139 forks source link

Get File add option to compress data #63

Closed spooning closed 2 months ago

spooning commented 10 years ago

Originally submitted to Google Code by Marcin.Koperski on 4 Mar 2013

It would be useful to add option to compress files before downloading them and later decompress to save network usage.

I would be especially use full for text files.

Option could specify how to compress data for example zip, tar etc.

spooning commented 10 years ago

Originally submitted to Google Code by @pekkaklarck on 5 Mar 2013

Why not to compress the data already on the server?

spooning commented 10 years ago

Originally submitted to Google Code by Marcin.Koperski on 5 Mar 2013

It add more complexity ( I do it now ).

Maybe extend "Set Default Configuration" add option to connection setup which will allow compression on ssh protocol level

spooning commented 10 years ago

Originally submitted to Google Code by @asyrjasalo on 25 Jul 2013

This is currently difficult to implement with Jython due to fact that the underlying Trilead SSH library doesn't support any compression. On the Python side, Paramiko supports compression which could be maybe enabled by default. Considering.

spooning commented 10 years ago

Originally submitted to Google Code by Marcin.Koperski on 25 Jul 2013

I notice there is git project for https://github.com/jenkinsci/trilead-ssh2 maybe its possible to extend this library to support compression.

spooning commented 10 years ago

Originally submitted to Google Code by @asyrjasalo on 25 Jul 2013

At a quick look, https://code.google.com/p/connectbot/source/browse/src/com/trilead/ssh2 seems to do that.

Another option would be to get rid of the abandoned Trilead library and use SSHJ (https://github.com/shikhar/sshj) instead.

spooning commented 10 years ago

Originally submitted to Google Code by Marcin.Koperski on 25 Jul 2013

I think since it will be soon new release of 1.2 I think is better to discontinue using old libs and start using new generation lib since for end user its simple add new jar to classhpath. Only add warning about change.

spooning commented 10 years ago

Originally submitted to Google Code by @spooning on 31 Jul 2013

Changing the dependency from Trilead to something would be a rather big task for 1.2. It would require pretty much re-implementing the Jython part of the library. It's also always possible that the new dependency would not support something that the current does.

Marcin, contact us on NSN internal list if this is urgent. Otherwise this is going to be delayed until we have other needs to upgrade the dependency.

Noordsestern commented 2 months ago

This issue is more than 10 years old and did not create any attention. Closing this issue until further feedback.