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

Fully merged #2

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open

Fully merged #2

wants to merge 39 commits into from

Conversation

DaveEOS
Copy link

@DaveEOS DaveEOS commented Dec 19, 2017

No description provided.

arokettu and others added 30 commits August 23, 2016 17:09
In version 2, aws-sdk started using Seahorse as HTTP Client, and the
http_proxy configuration changed from :proxy_uri to :http_proxy

The new option can be seen here:
https://github.com/aws/aws-sdk-ruby/blob/master/aws-sdk-core/lib/seahorse/client/net_http/connection_pool.rb#L234
Add Version to ActiveRecord::Migration. Required in Rails 5+
Add Version to ActiveRecord::Migration. required in Rails 5+
remove stray comma
correct houndci-bot violations
add a nil check before calling chomp on type_from_file_command
Exception is the root of Ruby's exception hierarchy, so when you rescue Exception you rescue from everything, including subclasses such as SyntaxError, LoadError, and Interrupt etc which is a bad idea.

Fix: rescue from StandardError.
FactoryGirl is a factory bot now
1) Principle of least surprise;
2) Paperclip can be used for non-image attachment types, e.g. audio, documents, etc.
If the filename in the header (for any reason) doesn't  have quotes, this line throws an error. This fix also matches filenames without quotes.

Real world example:
```
Content-Disposition: inline; filename=2125_plg_K1.1_type+C__01.pdf; filename*=UTF-8''2125_plg_K1.1_type+C__01.pdf
```

Throws an error:
```
NoMethodError: undefined method `[]' for nil:NilClass
/Users/bas/.rvm/gems/ruby-2.3.3/gems/paperclip-5.1.0/lib/paperclip/io_adapters/uri_adapter.rb:33:in `filename_from_content_disposition'
```
@DaveEOS
Copy link
Author

DaveEOS commented Dec 19, 2017

Fixes are pending.

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.