openstack-swift

CORS support in OpenStack SWIFT

喜你入骨 提交于 2019-12-06 07:36:39
How can I configure OpenStack SWIFT to send all the appropriate CORS headers in response to a client's OPTIONS request? I know about the crossdomain plugin to the SWIFT pipeline, but the documentation only says that something like the following is allowed: [filter:crossdomain] use = egg:swift#crossdomain cross_domain_policy = <allow-access-from domain="xxx.yyy.com" /> It doesn't tell me how to specify the Access-Control-Allow-Headers, Access-Control-Expose-Headers, Access-Control-Allow-Credentials, Access-Control-Max-Age, etc. headers. Anyone know how this is done? Despite very confusing

issues working with python generators and openstack swift client

谁都会走 提交于 2019-12-03 22:34:30
I'm having a problem with Python generators while working with the Openstack Swift client library. The problem at hand is that I am trying to retrieve a large string of data from a specific url (about 7MB), chunk the string into smaller bits, and send a generator class back, with each iteration holding a chunked bit of the string. in the test suite, this is just a string that's sent to a monkeypatched class of the swift client for processing. The code in the monkeypatched class looks like this: def monkeypatch_class(name, bases, namespace): '''Guido's monkeypatch metaclass.''' assert len(bases

Can not debug java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Preconditions

人盡茶涼 提交于 2019-12-02 20:31:56
问题 I am trying to make an applet for uploading files to openstack swift using jclouds. And I am facing the NoClassDefFoundError, following is the stacktrace: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Preconditions at org.nnsoft.guice.rocoto.configuration.ConfigurationModule.configure(ConfigurationModule.java:64) at com.google.inject.AbstractModule.configure(AbstractModule.java:59) at com.google.inject.spi.Elements$RecordingBinder.install(Elements

Public URLs For Objects In Bluemix Object Storage Service

主宰稳场 提交于 2019-11-26 23:17:40
问题 I would like to upload a number of photos to the Bluemix Object Storage service and then display them in a web app. Right now a GET request to the photo in the object storage container requires and auth token. Is there any way I can create a public URL to the object that would not require an auth token for a GET request? I see there is an option of creating temporary URLs to objects but I don't want the URL to be temporary I want it to live forever. Is the only option to create a long lived