[MERGE] "bzr commit" fails with Microsoft FTP Service

Andreas Deininger adeininger at googlemail.com
Fri Apr 11 12:55:51 BST 2008


2008/4/9 John Arbash Meinel <john at arbash-meinel.com>:
>
> BB:tweak
>
> I don't think matching 550 anywhere in the string should be accepted.
> Instead we
> should probably do "if s.startswith('550')" or something similar.
>
> I don't know FTP well enough to know that for sure.
>
> Certainly our FTP error handling is a bit weak if they can send
> internationalized strings back to us. IIRC the error codes aren't
> particularly
> clear (you get a 550 for more than just file does not exist), which is why
> most
> of our code biases errors with the expected failure mode. (Creating a file
> likely doesn't have it's parent exist, renaming a file likely doesn't have
> the
> source exist, etc.)
>
> Anyway, if someone else knows FTP 550 better than I, I'm happy to have a
> .startswith() merged.

After putting a the check for 550 in the _rename function, I'm
resubmitting that patch.

Thanks for your attention

Andreas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bzr-microsoft-ftp-service-rfnr-message-2.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20080411/6af239f4/attachment.diff 


More information about the bazaar mailing list