fog-openstack
fog-openstack copied to clipboard
Uxexpected connection between provider name and openstack_temp_url_key
I found unexpected behavior with follow options which used in CarrierWave:
config.storage = :fog
config.fog_provider = 'fog/openstack
config.fog_public = false
config.fog_credentials = {
...
provider: 'OpenStack',
...
}
If provider setup as 'OpenStack', it will support upload/remove/view with temporary tempurl. but if provider setup as 'openstack', it will support upload/remove, but view with temporary tempurl will not works (will show only last part of url without server as local assest).
@warpc I tried reproducing this problem with docker Swift all-in-one (https://hub.docker.com/r/bouncestorage/swift-aio/), but cannot reproduce the behavior of failing to be able to GET an object. Could you supply a test case that demonstrates the problem?
For reference, this was my attempt:
os = Fog::Storage.new(provider: 'openstack')
os.get_object_https_url('foo', 'bar', Fog::Time.now + 3600)
I am able to use curl
to retrieve the object using this URL (for Swift all-in-one, I had to mutate the scheme and host).