canvas-lms/lib
Anthus Williams bf208212d9 close temp files after upload
CNVS-11519

this fixes an error introduced in 
https://gerrit.instructure.com/#/c/28234/

test plan:
-try to upload a zipped directory containing lots
of files (for example, there is a dropbox link in
CNVS-11519 containing a file you can use
-while the upload is still in progress, try to upload
the same in a different course
-check that all files are uploaded, in each course

Change-Id: I373dfebe5dbc1f21e681d35e227037cb4a316676
Reviewed-on: https://gerrit.instructure.com/31933
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Anthus Williams <awilliams@instructure.com>
2014-03-24 16:15:08 +00:00
..
api move QuizSerializer into quizzes namespace 2014-03-12 16:21:33 +00:00
app_center explicitly include the app center access token in the cache key 2014-03-03 15:38:18 +00:00
auditors add course settings to update and created activity logs 2014-02-07 20:34:24 +00:00
basic_lti WIP basic_lti_outbound gem extraction 2014-01-23 22:35:20 +00:00
bookmarked_collection fix messagable user for rails 3 2014-02-06 21:47:53 +00:00
canvas extract canvas statsd gem 2014-03-14 15:03:23 +00:00
cc don't copy all the grading standards in every course copy 2014-03-04 19:12:19 +00:00
data_fixup add unique index to enrollments users per section 2014-03-06 22:20:30 +00:00
event_stream extract canvas statsd gem 2014-03-14 15:03:23 +00:00
ext inline only usage of Array#to_ics 2014-02-13 22:17:57 +00:00
features change draft state to 'allowed' instead of 'hidden' 2014-03-21 23:08:17 +00:00
handlebars fix "enter" in guard 2013-12-18 23:25:36 +00:00
i18n fixes lolcalization for handlebars non HTML-escaped expressions 2013-11-20 22:59:35 +00:00
i18n_extraction fix handlebars i18n/wrapper/whitespace bug, closes CNVS-11638 2014-03-05 23:20:48 +00:00
incoming_mail extracted html text helper methods into gem 2014-02-07 20:11:19 +00:00
kaltura deprioritize kaltura conversions with suspiciously high bitrates 2014-03-18 17:51:57 +00:00
messageable_user fix messagable user for rails 3 2014-02-06 21:47:53 +00:00
migration_import fix discussion_topic importing into groups 2014-03-04 12:47:09 +00:00
outcomes add aggregate parameter to outcome results rollup api 2014-01-07 22:09:45 +00:00
reporting skip intermediate join table for counts report query 2014-02-19 21:53:15 +00:00
sis fix user sis imports on mysql 2014-03-08 01:00:29 +00:00
stubs shims for running rails 2 with a rails 3 cache 2014-03-14 15:25:23 +00:00
tasks upgraded requirejs to 2.1.10 2014-03-10 22:27:53 +00:00
action_controller_test_process.rb fix for rails3 refactoring of TestUploadedFile 2014-01-17 17:53:18 +00:00
api.rb value_to_array returns empty array for nil 2014-02-26 19:18:17 +00:00
api_route_set.rb fix api doc generation for rails 3 2013-12-11 19:58:50 +00:00
api_routes.rb fix api doc generation for rails 3 2013-12-11 19:58:50 +00:00
asset_signature.rb Better signatures for message redirects 2012-12-13 12:12:58 -07:00
assignment_override_applicator.rb rails3: fix override timestamps 2014-02-26 00:18:58 +00:00
attr_config.rb EventStream abstraction 2013-04-19 19:05:14 +00:00
authentication_methods.rb extract canvas statsd gem 2014-03-14 15:03:23 +00:00
basic_lti.rb add lti variable substitution support 2013-06-07 15:49:47 +00:00
bookmarked_collection.rb normalize group sorting, add SimpleBookmarker for common case 2013-07-12 23:09:50 +00:00
browser.rb don't warn browsers we don't recognize, fixes CNVS-4754 2013-03-20 22:16:16 +00:00
canvas.rb sanity check cache_store.yml and warn of misconfig 2014-03-05 18:48:19 +00:00
canvas_logger.rb resolve rails 3 logger.silence deprecation warnings 2014-02-03 21:06:53 +00:00
canvas_time.rb make fancy midnight work for assignment overrides 2013-03-07 15:53:06 -07:00
cc.rb rubyzip 1.0.0 upgrade 2013-11-22 19:23:34 +00:00
content_zipper.rb namespace all of quiz into quizzes module 2014-02-18 22:17:13 +00:00
copy_authorized_links.rb Initial commit. 2011-01-31 18:57:29 -07:00
custom_validations.rb API for adding files by URL 2012-08-15 16:38:50 -06:00
cuty_capt.rb fix for rails3 refactoring of TestUploadedFile 2014-01-17 17:53:18 +00:00
dates_overridable.rb re-add id back to allowed fields for assignment/quiz api results 2014-03-06 22:41:12 +00:00
delayed_message_scrubber.rb remove messages older than 360 days 2013-11-07 17:19:59 +00:00
delicious_diigo.rb fix cert verification in delicious calls 2011-11-18 09:12:03 -07:00
due_date_cacher.rb optimize due date cacher trivial case 2014-03-24 16:13:20 +00:00
ember_bundle.rb intial ember quizzes skeleton with updated build 2013-11-20 17:24:01 +00:00
enrollments_from_user_list.rb rename skip_callback->suspend_callbacks 2014-02-11 23:14:41 +00:00
eportfolio_page.rb arel-ify lib 2013-04-01 19:12:22 +00:00
event_stream.rb extract canvas_cassandra gem 2014-01-22 22:49:35 +00:00
external_feed_aggregator.rb remove import and external_feed_id from calendar_events. 2013-04-22 22:19:00 +00:00
external_statuses.rb deprecate Setting.get_cached 2013-10-10 00:42:52 +00:00
facebook.rb replace retired facebook dashboard api with requests api 2013-10-24 21:27:25 +00:00
fake_rails3_generators.rb only define FakeRails3Generators for rails2 2013-11-18 22:41:28 +00:00
feature.rb student outcome results view 2014-02-27 22:07:16 +00:00
feature_flags.rb improve feature flag caching 2014-01-07 16:10:20 +00:00
file_in_context.rb close temp files after upload 2014-03-24 16:15:08 +00:00
file_splitter.rb Initial commit. 2011-01-31 18:57:29 -07:00
google_doc_entry.rb support for lazy loading google docs (backend) 2013-02-20 15:30:59 -07:00
google_docs.rb extract auto_handle to new canvas_uuid gem 2014-02-25 19:30:59 +00:00
grade_calculator.rb split grade calculations into groups of 1000 2014-03-21 20:12:15 +00:00
gradebook_csv_parser.rb rails 3 doesn't auto-require csv, so require it where necessary 2014-02-14 16:04:34 +00:00
gradebook_importer.rb remove :includes => :quiz_submission 2014-03-01 01:46:22 +00:00
has_content_tags.rb show unlock date for files and pages in locked modules 2013-08-02 18:19:45 +00:00
host_url.rb spec: fix specs with a plugin that overrides HostUrl.file_host_with_shard 2012-11-12 15:50:46 -07:00
i18n_import.rb switch out i18n backend, closes CNVS-5938 2013-06-06 18:11:28 +00:00
i18n_time_zone.rb localize Profile 2011-06-24 09:32:53 -06:00
imported_html_converter.rb fix wiki links in course copy/migrations 2014-03-04 00:17:56 +00:00
json_token.rb JSONToken helper module 2013-01-18 09:49:28 -07:00
kaltura.rb set a .csv file extension when using kaltura bulk api 2013-02-16 08:40:21 -07:00
learning_outcome_context.rb Nested outcomes UI, closes #9158 2012-10-25 11:03:21 -06:00
linked_in.rb don't cache twitter and linked_in settings process-wide 2012-05-25 10:13:03 -06:00
locale_selection.rb tweak tie-breaking logic for Accept-Language header 2013-09-17 21:56:36 +00:00
logging_filter.rb filter params recursively in error reports 2014-02-04 03:33:45 +00:00
message_dispatcher.rb don't dispatch cancelled messages, fixes #7397 2012-02-24 12:21:21 -07:00
message_scrubber.rb remove messages older than 360 days 2013-11-07 17:19:59 +00:00
messageable_user.rb update relative_id_for to switchman style 2014-02-04 14:14:20 +00:00
model_cache.rb fix model cache for rails 3 2014-02-05 19:27:09 +00:00
mutable.rb support using a scope as a condition 2013-10-30 20:02:30 +00:00
nil_store.rb only use homebrew NilStore with rails2 2013-11-19 19:46:08 +00:00
notification_message_creator.rb fix stream_items_helper for rails 3 2014-02-27 16:23:15 +00:00
paginated_collection.rb switch paginated/bookmarked collection for folio 2013-11-21 21:14:59 +00:00
permissions.rb allow registering new permissions in plugins 2012-03-02 09:38:06 -07:00
progress_runner.rb add a batch_update method to conversations api 2013-02-14 09:36:36 -07:00
reply_to_address.rb add multiple reply-to support to outgoing mail. 2013-02-22 14:02:27 -07:00
request_context_generator.rb set a header with the session id (for logging purposes) 2012-07-13 16:12:33 -06:00
rubric_context.rb preserve account-level rubric associations on course copy 2013-06-19 19:23:48 +00:00
scribd_api.rb fix off by one error in scribd delete method 2013-10-31 01:19:21 +00:00
search_term_helper.rb add search_term to files, modules, and module item apis 2013-08-02 20:12:04 +00:00
send_to_inbox.rb class_inheritable_accessor -> class_attribute 2013-10-29 17:53:35 +00:00
send_to_stream.rb class_inheritable_accessor -> class_attribute 2013-10-29 17:53:35 +00:00
simple_stats.rb quiz item analysis generation, closes CNVS-3421 2013-04-23 15:50:36 +00:00
simple_tags.rb add "none" scope 2013-10-29 20:25:45 +00:00
sis.rb remove unnecessary lib/sis requires 2013-04-02 15:58:29 +00:00
sort_first.rb spec: add to_datetime to SortFirst and SortLast 2014-02-04 21:17:27 +00:00
sort_last.rb spec: add to_datetime to SortFirst and SortLast 2014-02-04 21:17:27 +00:00
sorts_assignments.rb make "Upcoming Assignments" lists vdd aware 2013-02-06 13:21:58 -07:00
ssl_common.rb extract multipart gem 2014-02-28 23:00:09 +00:00
stats.rb fixed calculation of variance and standard deviation 2013-05-09 18:50:05 +00:00
sticky_sis_fields.rb ActiveSupport::Callbacks::Suspension 2014-02-19 20:20:00 +00:00
submission_list.rb clean up sorting all over 2013-10-02 21:38:08 +00:00
summary_message_consolidator.rb switch to Shackles gem 2013-04-17 16:25:06 +00:00
syslog_wrapper.rb resolve rails 3 logger.silence deprecation warnings 2014-02-03 21:06:53 +00:00
text_helper.rb extracted html text helper methods into gem 2014-02-07 20:11:19 +00:00
time_helper.rb calendar events api: fix date boundary handling 2013-02-06 13:49:45 -07:00
time_zone_helper.rb return time zone in user profile api 2013-07-25 16:46:32 +00:00
tour.rb added front-end to tour guide 2013-07-18 21:55:05 +00:00
turnitin.rb extract multipart gem 2014-02-28 23:00:09 +00:00
twitter.rb twitter: use HTTPS for OAuth 2014-01-21 20:50:40 +00:00
twitter_messenger.rb twitter link sending to correct url 2013-04-26 16:02:03 +00:00
unzip_attachment.rb check size of actual zip contents against quota 2014-02-06 19:29:27 +00:00
user_content.rb don't add verifiers to locked file links 2014-03-05 17:46:31 +00:00
user_list.rb use subquery instead of join for user list query 2014-01-31 18:16:17 +00:00
user_merge.rb add unique index to enrollments users per section 2014-03-06 22:20:30 +00:00
user_search.rb update relative_id_for to switchman style 2014-02-04 14:14:20 +00:00
uuid_singleton.rb Initial commit. 2011-01-31 18:57:29 -07:00
zip_extractor.rb extract auto_handle to new canvas_uuid gem 2014-02-25 19:30:59 +00:00