← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1340040] Re: Can't able to delete pseudo folder under container

 

When you create pseudo-directory objects in Swift, they are stored as
plain old objects whose names happen to contain slashes. You're trying
to delete the object "test1/" (with a slash) by running "swift delete
test test1" (without a slash), and those are two different names, so
Swift correctly returns a 404.

In the second comment, you've forgotten the container name in the "swift
delete" command, so it's not working.

I think Swift is performing as intended here.

** Changed in: swift
       Status: New => Invalid

-- 
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/1340040

Title:
  Can't able to delete pseudo folder under container

Status in OpenStack Dashboard (Horizon):
  Incomplete
Status in OpenStack Object Storage (Swift):
  Invalid

Bug description:
  Hi all,

  I can't able to delete pseudo folders created under Container. I
  installed openstack using packstack all-in-one in a CentOS machine.

  I can create multiple containers and upload objects in to it without a
  problem, but when I create a pseudo folder, I click on that dashboard
  goes to "something went wrong".  I fix that temporarily using the fix
  here https://bugs.launchpad.net/horizon/+bug/1312222

  Now I can create subfolders and upload objects in to that file, but I can't able to delete any of these pseudo folders. 
  When I try to delete pseudo folder named (for eg  test), I'm getting error Error: You are not allowed to delete object:test.

  When using cli, I get this 
  [root@icestack ~(keystone_admin)]# swift list test
  test1/
  [root@icestack ~(keystone_admin)]#
  [root@icestack ~(keystone_admin)]#
  [root@icestack ~(keystone_admin)]# swift delete test test1
  Object 'test/test1' not found

  I think it is a known issue, any workaround for this problem.

  Thanks & Regards,
  Anand TS

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1340040/+subscriptions


References