Public bug reported:

'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>"

** Affects: horizon
     Importance: Undecided
         Status: New


** Tags: ceph low-hanging-fruit swift

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

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

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