Upload fail when moving a file to a newly created folder

Bug #881517 reported by PierreF on 2011-10-25
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Breezy
Medium
Unassigned
bzr Upload plugin
High
Unassigned

Bug Description

Incremental upload fail when in some commit we moved a file to a newly created folder. Example to reproduce the issue:

$ bzr init myrepo
Created a standalone tree (format: 2a)
$ cd myrepo
$ echo "Test" > test.txt
$ bzr add
adding test.txt
$ bzr commit -m 'message1'
Committing to: /tmp/20111025-1813/myrepo/
added test.txt
Committed revision 1.
$ bzr upload sftp://localhost/tmp/upload_test
No uploaded revision id found, switching to full upload
Uploading test.txt
$ bzr mkdir folder
added folder
$ bzr mv test.txt folder
test.txt => folder/test.txt
$ bzr commit -m 'message2'
Committing to: /tmp/20111025-1813/myrepo/
added folder
renamed test.txt => folder/test.txt
Committed revision 2.
$ bzr upload
Using saved location: sftp://localhost/tmp/upload_test/
Renaming test.txt to folder/test.txt
bzr: ERROR: No such file: '.tmp.1319559751.386085033.7800.1497995492': [Errno 2] No such file

I thing the issue is that folder "folder" don't exists when it try to upload the "test.txt" file.
$ ls -la /tmp/upload_test
total 16
drwxrwxr-x 2 pierref pierref 4096 2011-10-25 18:22 .
drwxrwxrwt 18 root root 4096 2011-10-25 18:21 ..
-rw-rw-r-- 1 pierref pierref 59 2011-10-25 18:21 .bzr-upload.revid
-rw-rw-r-- 1 pierref pierref 5 2011-10-25 18:21 .tmp.1319559751.386085033.7800.1497995492

Known workaround: forcing a full upload (bzr upload --full).

Version information:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric

bzr version and bzr plugins -v attached

PierreF (pierre-fersing) wrote :
PierreF (pierre-fersing) wrote :

One missing point: /home/pierref/.bazaar/plugins/upload is a fresh branch of lp:bzr-upload (revno 86).
This bug also append with packaged version of bzr-upload (1.0.0+bzr83-4).

Martin Albisetti (beuno) on 2011-10-31
Changed in bzr-upload:
importance: Undecided → High
Jelmer Vernooij (jelmer) on 2012-03-22
Changed in bzr-upload:
status: New → Confirmed
Jelmer Vernooij (jelmer) on 2018-08-26
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
tags: added: upload
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers