Public bug reported:

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).

** Affects: horizon
     Importance: Undecided
         Status: New

** Description changed:

  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 throws up a conflict error
- (folder not empty).
+ matches for that prefix" so the Horizon code swift_delete_object()
+ throws up a conflict error (folder not empty).

-- 
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):
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to