Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uxexpected connection between provider name and openstack_temp_url_key #311

Open
warpc opened this issue Aug 4, 2017 · 1 comment
Open

Comments

@warpc
Copy link

warpc commented Aug 4, 2017

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

@timuralp
Copy link
Member

timuralp commented Aug 8, 2017

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants