RandomSec/main/src/com/google/refine/commands
Tom Morris 5f368bc56d
Use ContentDisposition instead of ContentType to control download (#2722)
* Use ContentDisposition instead of ContentType to control download

Fixes #1197. Previously we were using a funky ContentType to attempt
to force a file download rather than display in browser, but this
conflicted with attempts to save UTF-8 which was outside the Basic
Multilingual Plane (BMP).

By switching to ContentDisposition: attachment, which has been
the preferred method for a number of years, we can avoid this conflict.

As part of this, switch to using the "preview" param consistently
to control preview vs download rather than the content type.

* Switch content type to text/plain

Now that we don't need to use ContentType to control download
behavior, we can use something more reasonable.
2020-06-16 15:46:07 +02:00
..
auth Reorganize imports 2018-11-30 19:21:21 +09:00
browsing Require CSRF token in EditOneCellCommand 2019-10-14 16:24:26 +01:00
cell [FEAT]Adds new options for split (#2471) 2020-06-15 19:30:18 +02:00
column Add CSRF protection to cell, history, column and expr commands 2019-10-14 16:24:26 +01:00
expr Fix other NPE in expression logging, for #2264 2020-01-06 06:30:56 +01:00
history Add CSRF protection to cell, history, column and expr commands 2019-10-14 16:24:26 +01:00
importing Tie up CSRF tokens in the frontend 2019-10-15 12:07:14 +01:00
lang Replaced some deprecated methods 2020-02-24 23:51:41 -06:00
project Use ContentDisposition instead of ContentType to control download (#2722) 2020-06-16 15:46:07 +02:00
recon CSRF protection for project and recon commands 2019-10-15 12:07:12 +01:00
row Add CSRF protection to remaining commands 2019-10-15 12:07:13 +01:00
workspace Remove spurious references to org.json 2018-11-30 19:38:52 +09:00
Command.java Tie up CSRF tokens in the frontend 2019-10-15 12:07:14 +01:00
CSRFTokenFactory.java Add CSRF token generation capabilities, for #2164 2019-10-14 16:24:26 +01:00
EngineDependentCommand.java Add CSRF protection to cell, history, column and expr commands 2019-10-14 16:24:26 +01:00
GetAllPreferencesCommand.java Add CSRF protection to cell, history, column and expr commands 2019-10-14 16:24:26 +01:00
GetCSRFTokenCommand.java Add CSRF token generation capabilities, for #2164 2019-10-14 16:24:26 +01:00
GetPreferenceCommand.java Migrate importers to use Jackson classes 2018-11-30 19:23:08 +09:00
GetVersionCommand.java Migrate GetVersionCommand to Jackson 2018-11-30 19:35:31 +09:00
HttpHeadersSupport.java Migrate importers to use Jackson classes 2018-11-30 19:23:08 +09:00
HttpUtilities.java Add missing license headers 2018-12-09 12:22:40 +09:00
OpenWorkspaceDirCommand.java CSRF protection for OpenWorkspaceDirCommand and language loading 2019-10-15 12:07:04 +01:00
SetPreferenceCommand.java Tie up CSRF tokens in the frontend 2019-10-15 12:07:14 +01:00