![]() sequenced_stream becomes really confused when we attempt to post a file that has non-ascii characters in the name. Add explicit conversion of individual buffers to UTF-8 on read to prevent this issue. Test Plan: * Configure local inst-fs with canvas (see readme in repo for instructions) * Open a canvas rails console `bundle exec rails c` * Run a manual inst-fs upload of a binary file (like a jpg) with non-ascii characters in the filename ``` InstFS.direct_upload( file_name: "祝贺.jpg", file_object: File.open("congrats.jpg") ) ``` * Upload should complete without throwing closes SAS-312 Change-Id: I724cf77701171074cfb5317c362c963d60ecc15f Reviewed-on: https://gerrit.instructure.com/172075 Reviewed-by: Andrew Huff <ahuff@instructure.com> Tested-by: Jenkins QA-Review: Andrew Huff <ahuff@instructure.com> Product-Review: Jonathan Featherstone <jfeatherstone@instructure.com> |
||
---|---|---|
.. | ||
lib | ||
spec | ||
.rspec | ||
Gemfile | ||
Rakefile | ||
multipart.gemspec | ||
test.sh |