canvas-lms/lib
Cody Cutrer f0a0ec6741 allow inferring authenticity token from upload policy even if a session exits
Chrome and Firefox send the session from Flash, Safari does not. So allow
inferring the authenticity token whether a session exists or not

Also, the JS no longer needs to worry about if uploading to local or remote
and adding/filtering the authenticity token - just do the same every time.

test plan:
 * use local storage
 * upload a file by clicking "Upload Files"
 * it should work in Safari, Firefox, Chrome, and IE

Change-Id: Ia46bde6ab042f21cd0643d4f5a1dbd2f7f9cee66
Reviewed-on: https://gerrit.instructure.com/21100
Reviewed-by: Jon Jensen <jon@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2013-06-14 14:43:00 +00:00
..
api/v1 allow inferring authenticity token from upload policy even if a session exits 2013-06-14 14:43:00 +00:00
app_center added the ability for users to review app center apps 2013-06-04 19:16:20 +00:00
basic_lti add lti variable substitution support 2013-06-07 15:49:47 +00:00
bookmarked_collection arel-ify lib 2013-04-01 19:12:22 +00:00
canvas add checkbox to enable BBB recording to BBB plugin settings 2013-06-13 17:53:46 +00:00
cc finish removing course.publish_grades_immediately 2013-06-04 18:11:08 +00:00
data_fixup replace submissions.late column with .cached_due_date 2013-06-10 19:11:31 +00:00
event_stream add attr_accessible to EventStream::Failure model 2013-06-11 14:56:09 +00:00
ext remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
handlebars fix various handlebars i18n bugs 2013-04-18 20:22:59 +00:00
i18n fix import for unbalanced pluralizations 2013-03-12 12:26:18 -06:00
i18n_extraction better i18n wrapper inference 2013-05-15 15:25:40 +00:00
incoming_mail incoming message processor should ignore harmless parsing errors 2013-06-05 19:18:09 +00:00
kaltura remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
messageable_user encourage reusing MessageableUser::Calculators 2013-04-29 18:53:23 +00:00
reporting switch to Shackles gem 2013-04-17 16:25:06 +00:00
sis remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
stubs use the birth shard so that the default shard can be changed 2013-05-07 15:44:17 +00:00
tasks switch out i18n backend, closes CNVS-5938 2013-06-06 18:11:28 +00:00
api.rb add data-api-endpoint for quiz / quiz list links 2013-06-04 20:34:24 +00:00
api_route_set.rb collections models and api 2012-05-10 13:38:58 -06:00
api_routes.rb support marking API methods as internal 2012-11-02 15:25:24 -06:00
asset_signature.rb Better signatures for message redirects 2012-12-13 12:12:58 -07:00
assignment_override_applicator.rb skip checking override versions when not needed 2013-05-23 20:46:49 +00:00
attr_config.rb EventStream abstraction 2013-04-19 19:05:14 +00:00
authentication_methods.rb allow inferring authenticity token from upload policy even if a session exits 2013-06-14 14:43:00 +00:00
auto_handle.rb switch to ruby stdlib SecureRandom 2013-03-28 20:49:31 +00:00
basic_lti.rb add lti variable substitution support 2013-06-07 15:49:47 +00:00
bookmarked_collection.rb arel-ify lib 2013-04-01 19:12:22 +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 refactor redis config loading 2013-05-23 19:04:35 +00:00
canvas_logger.rb fix CanvasLogger for rails 3.1+ 2013-04-01 18:41:20 +00:00
canvas_time.rb make fancy midnight work for assignment overrides 2013-03-07 15:53:06 -07:00
cc.rb add calendar events to export/import 2011-04-26 12:28:31 -06:00
color.rb Initial commit. 2011-01-31 18:57:29 -07:00
content_zipper.rb add ability to download all file uploads for a quiz as a zip 2013-05-16 21:14:19 +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 remove deprecated rails constant usage 2013-03-11 12:14:08 -06:00
dates_overridable.rb make fancy midnight work for assignment overrides 2013-03-07 15:53:06 -07:00
delicious_diigo.rb fix cert verification in delicious calls 2011-11-18 09:12:03 -07:00
due_date_cacher.rb replace submissions.late column with .cached_due_date 2013-06-10 19:11:31 +00:00
enrollments_from_user_list.rb add custom role support to course users tab 2012-12-26 15:46:12 -07:00
eportfolio_page.rb arel-ify lib 2013-04-01 19:12:22 +00:00
event_stream.rb activate the user's shard when consulting cassandra 2013-06-07 16:53:22 +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 Initial commit. 2011-01-31 18:57:29 -07:00
facebook.rb facebook list view fixed by replacing attribute being called 2013-05-01 20:58:19 +00:00
file_in_context.rb preserve module file items when overwriting files via zip 2012-09-14 13:54:38 -06: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 fixed issue where google doc collaboration links are broken 2013-03-12 15:36:42 -06:00
grade_calculator.rb only select necessary columns for gradecalculator 2013-06-06 20:46:35 +00:00
gradebook_csv_parser.rb remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
gradebook_importer.rb remove 1.8 compatibility shims 2013-05-03 01:43:52 +00:00
has_content_tags.rb run "update_associated_content_tags" synchronously to prevent race condition 2012-11-02 10:02:41 -06: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 relative urls with parameters in imported html 2013-04-19 21:03:58 +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 switch out i18n backend, closes CNVS-5938 2013-06-06 18:11:28 +00:00
logging_filter.rb fix logging parameter filtering in rails 3.1+ 2013-04-01 18:41:08 +00:00
message_dispatcher.rb don't dispatch cancelled messages, fixes #7397 2012-02-24 12:21:21 -07:00
messageable_user.rb refactor + fix message students who dialog for quiz show 2013-04-02 06:15:25 +00:00
model_cache.rb fixes for ruby 1.9.3 2012-05-12 14:34:23 -06:00
multipart.rb spec: fix multipart form builder StringIO filename in 1.8 2013-02-14 12:34:48 -07:00
mutable.rb finish removing course.publish_grades_immediately 2013-06-04 18:11:08 +00:00
nil_store.rb get rspec 2 running with rails 3.0 2013-03-27 15:41:28 +00:00
notification_message_creator.rb Add API for admins to access user messages 2013-04-11 19:38:02 +00:00
paginated_collection.rb bookmarked pagination, including multi-shard 2013-01-22 09:41:18 -07: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
quiz_question_data_fixer.rb arel-ify lib 2013-04-01 19:12:22 +00:00
quiz_question_link_migrator.rb don't die if a file or question is missing 2011-11-22 17:36:40 -07:00
quiz_submission_zipper.rb add ability to download all file uploads for a quiz as a zip 2013-05-16 21:14:19 +00: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
scribd_api.rb remove deprecated rails constant usage 2013-03-11 12:14:08 -06:00
send_to_inbox.rb fix inbox_item creation with too-long of subjects 2012-09-20 13:03:26 -06:00
send_to_stream.rb remove deprecated rails constant usage 2013-03-11 12:14:08 -06:00
simple_stats.rb quiz item analysis generation, closes CNVS-3421 2013-04-23 15:50:36 +00:00
simple_tags.rb arel-ify lib 2013-04-01 19:12:22 +00:00
sis.rb remove unnecessary lib/sis requires 2013-04-02 15:58:29 +00:00
skip_callback.rb refactor sticky sis fields 2011-09-27 16:34:37 -06:00
sorts_assignments.rb make "Upcoming Assignments" lists vdd aware 2013-02-06 13:21:58 -07:00
ssl_common.rb support funky characters in username/passwords for http url parsing 2011-09-08 14:21:50 -06:00
stats.rb fixed calculation of variance and standard deviation 2013-05-09 18:50:05 +00:00
sticky_sis_fields.rb [#5773] Ruby 1.9.3 spec fixes 2012-10-25 09:34:28 -06:00
submission_list.rb arel-ify lib 2013-04-01 19:12:22 +00:00
summary_message_consolidator.rb switch to Shackles gem 2013-04-17 16:25:06 +00:00
syslog_wrapper.rb log context when using local rails buffered logger 2011-07-25 13:25:18 -06:00
text_helper.rb resolved html emails including html tags 2013-05-10 16:48:50 +00:00
time_helper.rb calendar events api: fix date boundary handling 2013-02-06 13:49:45 -07:00
tinychat.rb remove deprecated rails constant usage 2013-03-11 12:14:08 -06:00
tmail_parser.rb Initial commit. 2011-01-31 18:57:29 -07:00
tour.rb added tour guide libs 2013-05-22 19:30:13 +00:00
turnitin.rb remove openobject from turnitin 2013-06-04 19:55:52 +00:00
twitter.rb update twitter api to v1.1. 2013-03-01 15:09:02 -07:00
twitter_messenger.rb twitter link sending to correct url 2013-04-26 16:02:03 +00:00
unzip_attachment.rb Kernel#returning is deprecated 2013-03-12 13:44:03 -06:00
user_content.rb copy links to wiki pages that start with numbers correctly 2013-03-15 14:30:58 -06:00
user_list.rb arel-ify lib 2013-04-01 19:12:22 +00:00
user_merge.rb don't load entire submissions and quiz_submissions into memory 2013-06-07 22:31:28 +00:00
user_search.rb api functionality: unassigned group members, with search 2013-06-13 18:04:38 +00:00
uuid_singleton.rb Initial commit. 2011-01-31 18:57:29 -07:00
workflow.rb change class_inheritable_accessor and write_inheritable_hash to class_attribute 2013-04-01 18:41:30 +00:00
xmlcanonicalizer.rb Initial commit. 2011-01-31 18:57:29 -07:00
zip_extractor.rb Initial commit. 2011-01-31 18:57:29 -07:00