swift client leaves empty directories when specifiing output file

Bug #1369546 reported by Roman Pertl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Pete Zaitcev

Bug Description

when specifying an output file and downloading a file from a pseudo subdirectory, swift leaves an empty directory behind.

# rmdir bin
rmdir: failed to remove `bin': No such file or directory
# swift download CONTAINER bin/zless -o /tmp/bla
bin/zless [auth 0.332s, headers 0.546s, total 0.549s, 0.009 MB/s]
# ls -la bla
-rw-r--r-- 1 root root 2039 Sep 15 12:20 bla
# ls -la bin
total 8
drwxr-xr-x 2 root root 4096 Sep 15 12:20 ./
drwxrwxrwt 5 root root 4096 Sep 15 12:20 ../

Distributor ID: Debian
Description: Debian GNU/Linux 7.6 (wheezy)
Release: 7.6
Codename: wheezy

# dpkg -l |grep swift
ii python-swift 1.13.0-1~bpo70+1
ii python-swiftclient 1:2.0.2-2~bpo70+1
ii swift 1.13.0-1~bpo70+1

Roman Pertl (roock)
description: updated
Changed in swift:
status: New → Confirmed
Pete Zaitcev (zaitcev)
Changed in swift:
assignee: nobody → Pete Zaitcev (zaitcev)
Revision history for this message
Pete Zaitcev (zaitcev) wrote :

Please have a look at this review:
 https://review.openstack.org/122301

Changed in swift:
status: Confirmed → In Progress
Pete Zaitcev (zaitcev)
Changed in swift:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in swift:
milestone: none → 2.2.0-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in swift:
milestone: 2.2.0-rc1 → 2.2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.