Comment 5 for bug 294709

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 294709] [NEW] Pushing to shared repo using FTP doesn't work: "Append/Restart not permitted, try again"

On Thu, 2008-11-06 at 14:49 +0000, Daniel Watkins wrote:
>
> > bzr: ERROR: Transport error: FTP temporary error during
> APPEND /bzr-repo/.bzr/repository/upload/k2a94q9mf00jznz50sct.fetch.Aborting. 451 /bzr-repo/.bzr/repository/upload/k2a94q9mf00jznz50sct.fetch: Append/Restart not permitted, try again
> It seems like we should be able to work around this by doing 'get
> remote
> file', 'perform append locally, 'push new file'.

We don't actually append to any files. The .fetch file is streamed out
by the push command - it starts empty.

This is the FTP implementation of a stream expecting APPE to work (which
is a reasonable expectation :() and being denied.

So - its a FTP transport bug, and probably what the FTP transport needs
to do is to write the first block of data its given in two parts
(keeping both in memory) so it can be sure that APPE works; if it
doesn't, make a temp file and buffer, if it does, cool.

Note that using a temp file will require redirecting read/readv requests
to the streams name into the local temp file.

 status confirmed
 importance medium

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.