bzr shouldn't use ftp append when writing a whole file in one go
Bug #409615 reported by
Martin Pool
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
In Progress
|
Low
|
Unassigned | ||
Breezy |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Following on from bug 294709 and bug 409507: bzr apparently uses ftp APPE to append when writing out pack files to the upload directory. Some ftp servers, for reasons known only to themselves, don't support appending to existing files. (S3 has a similar limitation I think.)
It's actually quite unnecessary to ask to append because in these cases we are just writing the whole file in one go. It's probably better if the higher-level use of the Transport api reflects that.
Related branches
lp://qastaging/~jelmer/brz/no-more-ftp
- Vincent Ladeuil: Approve
- Martin Packman: Approve
-
Diff: 1510 lines (+17/-1308)16 files modifiedbreezy/help_topics/en/authentication.txt (+3/-3)
breezy/lockdir.py (+0/-3)
breezy/plugins/git/tests/test_dir.py (+1/-1)
breezy/plugins/upload/__init__.py (+1/-1)
breezy/plugins/upload/tests/test_upload.py (+1/-25)
breezy/tests/__init__.py (+0/-6)
breezy/tests/blackbox/test_help.py (+0/-2)
breezy/tests/ftp_server/__init__.py (+0/-82)
breezy/tests/ftp_server/pyftpdlib_based.py (+0/-223)
breezy/tests/test_ftp_transport.py (+0/-151)
breezy/tests/test_http.py (+2/-2)
breezy/tests/test_smart_transport.py (+1/-1)
breezy/tests/transport_util.py (+8/-19)
breezy/transport/__init__.py (+0/-23)
breezy/transport/ftp/__init__.py (+0/-638)
breezy/transport/ftp/_gssapi.py (+0/-128)
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in brz: | |
status: | Triaged → Won't Fix |
To post a comment you must log in.
The high level transport API does reflect it; however the generic thunk
code, which is all that the ftp transport implements, uses append.
If there is a better facility, just hooking it in should be sufficient.
-Rob