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

Rails 5.2.1.1 breaks ActiveStorage with Amazon #34558

Closed
gssbzn opened this issue Nov 28, 2018 · 3 comments
Closed

Rails 5.2.1.1 breaks ActiveStorage with Amazon #34558

gssbzn opened this issue Nov 28, 2018 · 3 comments

Comments

@gssbzn
Copy link

gssbzn commented Nov 28, 2018

Steps to reproduce

After upgrading to 5.2.1.1 I'm getting on three different applications ArgumentError: unknown keyword: content_type

Example model:

class Post < ApplicationRecord
  has_one_attached :file
end

Example controller

def create
    @post = Post.new(post_params) 
    @post.save
end

Expected behavior

Successfully save the record and upload the associated file to Amazon S3

Actual behavior

Save is raising ArgumentError: unknown keyword: content_type

System configuration

Rails version: 5.2.1.1

Ruby version: ruby 2.5.3p105

@stevenharman
Copy link
Contributor

Hi @gssbzn.

This might be a dup of #34550 and #34551.

@eileencodes
Copy link
Member

Closing as duplicate

@gssbzn
Copy link
Author

gssbzn commented Nov 28, 2018

@stevenharman indeed

kevindew added a commit to alphagov/content-publisher that referenced this issue Nov 29, 2018
This is because the security fix 5.2.1.1 had a critical issue with
AWS S3 rails/rails#34558
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

3 participants