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

Fix Paperclip::Fog always responds Not Found in some OpenStack-v2 #5155

Merged

Conversation

k24
Copy link
Contributor

@k24 k24 commented Sep 30, 2017

#2322 was made for OpenStack-v2 (c.f. ConoHa) but #4889 removed 'openstack_tenant' for v3.
That causes the problem as the title of this PR.

In detail of this issue:

  1. User tries to upload an image.
  2. POST api/v1/media
  3. Paperclip::Fog tries to create the object of the image.
  4. Some Openstack-v2 responds 404 Not Found if no 'openstack_tenant'

In addition, this PR replaces to 'fetch' because 'fog_host' is not required parameter according to Paperclip comment.

I don't know that Mastodon supports any OpenStack-v2, so if no intention to do that, then feel free to close this.

@Gargron Gargron merged commit 83ffc4d into mastodon:master Sep 30, 2017
rutan pushed a commit to rutan/mastodon that referenced this pull request Oct 11, 2017
cobodo pushed a commit to cobodo/mastodon that referenced this pull request Oct 20, 2017
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

Successfully merging this pull request may close these issues.

None yet

3 participants