chinwagsocial/lib/paperclip
Claire dbe5e29e38 Fix upload of remote media with OpenStack Swift sometimes failing (#16998)
Under certain conditions, files fetched from remotes trigger an error when
being uploaded using OpenStack Swift. This is because in some cases, the
remote server will not return a content-length, so our ResponseWithLimitAdapter
will hold a `nil` value for `#size`, which will lead to an invalid value
for the Content-Length header of the Swift API call.

This commit fixes that by taking the size from the actually-downloaded file
size rather than the upstream-provided Content-Length header value.
2022-01-28 22:53:15 +01:00
..
attachment_extensions.rb Fix media processing getting stuck on too much stdin/stderr (#16136) 2022-01-28 22:39:48 +01:00
blurhash_transcoder.rb Add blurhash to preview cards (#13984) 2020-06-05 23:10:41 +02:00
color_extractor.rb Bump rubocop from 0.86.0 to 0.88.0 (#14412) 2020-09-01 03:04:00 +02:00
gif_transcoder.rb Fix media processing getting stuck on too much stdin/stderr (#16136) 2022-01-28 22:39:48 +01:00
image_extractor.rb Fix media processing getting stuck on too much stdin/stderr (#16136) 2022-01-28 22:39:48 +01:00
lazy_thumbnail.rb Update ESLint and RuboCop in Code Climate (#12534) 2019-12-02 18:25:43 +01:00
media_type_spoof_detector_extensions.rb Fix mimetype returning nil (#14356) 2020-07-19 13:09:47 +02:00
response_with_limit_adapter.rb Fix upload of remote media with OpenStack Swift sometimes failing (#16998) 2022-01-28 22:53:15 +01:00
transcoder.rb Fix media processing getting stuck on too much stdin/stderr (#16136) 2022-01-28 22:39:48 +01:00
type_corrector.rb Add customizable thumbnails for audio and video attachments (#14145) 2020-06-29 13:56:55 +02:00
url_generator_extensions.rb Change REST API to return empty data for suspended accounts (#14765) 2020-09-11 15:16:29 +02:00