yanne / api-test

0 stars 0 forks source link

Get File add option to compress data #63

Open yanne opened 10 years ago

yanne commented 10 years ago

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.

This issue was originally opened at Google Code on Mar 4, 2013.

yanne commented 10 years ago

Original comment by pekka.klarck on Mar 5, 2013.

Why not to compress the data already on the server?

yanne commented 10 years ago

Original comment by Marcin.Koperski on Mar 5, 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

yanne commented 10 years ago

Original comment by anssi.sy...@eficode.com on Jul 25, 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.

yanne commented 10 years ago

Original comment by Marcin.Koperski on Jul 25, 2013.

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

yanne commented 10 years ago

Original comment by anssi.sy...@eficode.com on Jul 25, 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.

yanne commented 10 years ago

Original comment by Marcin.Koperski on Jul 25, 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.

yanne commented 10 years ago

Original comment by robotframework@gmail.com on Jul 31, 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.