problems with bzr 0.10 and paramiko sftp transfer

Stefan (metze) Metzmacher metze at samba.org
Mon Sep 4 15:15:21 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robey Pointer schrieb:
> 
> On 31 Aug 2006, at 10:21, John Arbash Meinel wrote:
> 
>> Lukáš Lalinský wrote:
>>> John Arbash Meinel wrote:
>>>> Lukáš Lalinský wrote:
>>
>> ...
>>
>>> I've just experienced the same problem on my server. In my local
>>> branch all the
>>> .kndx files start with "# bzr knit index 8\n\n", but if I push the
>>> branch using
>>> the sftp transfer (paramiko 1.6.2), the headers get removed. After
>>> downgrade to
>>> paramiko 1.6.1 it pushed the branch correctly (though the one on
>>> server was
>>> damaged, so I had to do delete it and push all revisions).
>>> Unfortunately this is
>>> probably too deep in the source code for me to debug it...
> 
> I just reproduced this and it turns out to happen only for paramiko dev,
> not 1.6.2.
> 
> The sad news is that it's the append behavior we were hoping to optimize
> away: posix doesn't ignore an lseek() on an append-only file, and
> openssh's sftp server code always does the lseek.  I thought I'd tested
> against openssh but clearly not well enough.
> 
> John, this means I'll have to revert the optimization and paramiko will
> still have to do a round-trip to fetch the file length before appending
> to a file.  That probably makes your patches to avoid appending more
> important.

I just noticed this bug too, also the paramiko repository seems to be
corrupted now.

metze at SERNOX:~/devel/bzr/paramiko> bzr pull
Using saved location: http://www.lag.net/paramiko/bzr/paramiko/
bzr: ERROR: Knit header error: '\n' unexpected

The change seems to be introduced by revision 390.

And I have revision 391 as latest revision, and 389 is the latest that
works.

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFE/DT5m70gjA5TCD8RApL2AJ9tyTGryeqO6Eba17wYMxlMHl8pVgCeObGt
fVhK5zxpaDT/lqICRrA7US4=
=NSjQ
-----END PGP SIGNATURE-----




More information about the bazaar mailing list