Upload of object to a pseudo-folder can create a broken directory-marker

Bug #1432734 reported by Thiago Gomes
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-swiftclient
Fix Released
Undecided
Thiago Gomes

Bug Description

To reproduce it follow these step bellow:

$ swift upload container/pseudo-folder object
$ swift list container
pseudo-folder
pseudo-folder/object

This "pseudo-folder" directory marker object should end in a slash. With out the slash many clients will treat it as a zero-byte object in the above directory.

Thiago Gomes (fthiagogv)
summary: - Upload an object to a pseudo-folder create a pseudo-folder-object empty
+ Upload an object to a pseudo-folder create a "pseudo-folder-object"
+ empty
Changed in python-swiftclient:
assignee: nobody → Thiago Gomes (fthiagogv)
description: updated
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-swiftclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/165112

Changed in python-swiftclient:
status: New → In Progress
Thiago Gomes (fthiagogv)
description: updated
Thiago Gomes (fthiagogv)
description: updated
clayg (clay-gerrard)
summary: - Upload an object to a pseudo-folder create a "pseudo-folder-object"
- empty
+ Upload of object to a pseudo-folder can create a broken directory-marker
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-swiftclient (master)

Change abandoned by John Dickinson (<email address hidden>) on branch: master
Review: https://review.openstack.org/165112
Reason: Abanoning based on the lack of activity since the last negative review. If you want to continue working on this, please reopen this patch.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-swiftclient (master)

Reviewed: https://review.openstack.org/263259
Committed: https://git.openstack.org/cgit/openstack/python-swiftclient/commit/?id=2c6f367035bd09978d0fbf8c959d03210e421a9b
Submitter: Jenkins
Branch: master

commit 2c6f367035bd09978d0fbf8c959d03210e421a9b
Author: James Nzomo <email address hidden>
Date: Mon Jan 4 16:09:29 2016 +0300

    Fix upload to pseudo-dir passed by <container> arg

    This fix makes it possible to upload objects to pseudo-folders by
    passing the upload paths via <container> arg regardless of whether the
    container or folder path exist or not.

    Change-Id: I575e58aa12adcf71cdaa70d025a0ea5c63f46903
    Closes-Bug: #1478210
    Partial-Bug: #1432734
    Related-Bug: #1432734

James Nzomo (moje)
Changed in python-swiftclient:
status: In Progress → Fix Released
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.