← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1705781] Re: Object Store Public Container Unable to Disable

 

This functionality works correctly with swift in devstack (not using
Ceph).  If this bug is appearing when swift uses Ceph, it would appear
that the swift api is not working consistently across with various
storage back-ends, in which case a bug should be filed with swift.

** Changed in: horizon
       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/1705781

Title:
  Object Store Public Container Unable to Disable

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  'Public Access' Checkbox on object store cannot tick off once the
  container publics on Ceph object storage.

  Base on the source code
  (https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/swift.py)

  ```
      if public is True:
          public_container_acls = [GLOBAL_READ_ACL, LIST_CONTENTS_ACL]
          headers['x-container-read'] = ",".join(public_container_acls)
      elif public is False:
          headers['x-container-read'] = ""
  ``` 

  Swift API does not accept empty string for 'x-container-read' which
  will not change ACL setting

  Solution:

  input any string instead of an empty string can solve the problem

  headers['x-container-read'] = "<some string>"

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


References