yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #51328
[Bug 1583391] Re: Swift UI delete of files with similar names breaks
Reviewed: https://review.openstack.org/318401
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=75d30cba488939d52a3d3df42d037cd00a09ed60
Submitter: Jenkins
Branch: master
commit 75d30cba488939d52a3d3df42d037cd00a09ed60
Author: Richard Jones <r1chardj0n3s@xxxxxxxxx>
Date: Thu May 19 11:10:10 2016 +1000
Don't attempt to list the "folder" contents of Swift objects
Swift doesn't really have folders, it just has object listings
matching string prefixes. This will get confused if two objects
have the same string prefix name, so just don't do it.
Change-Id: Iab818cc965aab1470aa41ebebd5db7c50ed3836d
Fixes-Bug: 1583391
** Changed in: horizon
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1583391
Title:
Swift UI delete of files with similar names breaks
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
If you attempt to delete two swift files (objects) which are named
"spam" and "spammer" then the first will fail because Horizon's swift
api code layer attempts to determine if the object has any folder
contents. Yep. And because of the way swift "folders" are implemented
(string prefix matching) the result from swift will be "yep, there's
two matches for that prefix" so the Horizon code swift_delete_object()
throws up a conflict error (folder not empty).
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1583391/+subscriptions
References