RandomSec/main
Tom Morris e6ed8e5d62
Save preferences JSON using UTF-8 encoding. Bulletproof prefs load. (#2657)
* Save preferences JSON using UTF-8 encoding. Bulletproof prefs load.

Fixes #2543. Fixes #2627.

Always use UTF-8 to write JSON because platform default encoding
might not be legal JSON (e.g. ISO 8859-1).

Also be more conservative about keeping backups if we fail to write.

* Handle case where backup prefs is better than more recent

* Recover from corrupted prefs with null starred list.

Fixes #2544. Replaces null with an empty list.

* Run tests with non-UTF-8 encoding

Make sure that we don't depend on UTF-8 being the default encoding
because it isn't true everywhere (e.g. Windows)

* Add test for non-ASCII chars in workspace.json

This depends on the default Java encoding being something
other than UTF-8 to test properly.
2020-06-06 10:00:01 +01:00
..
IDEs/eclipse Thad no longer supports Netbeans config (#2466) 2020-03-27 09:30:30 +01:00
src Save preferences JSON using UTF-8 encoding. Bulletproof prefs load. (#2657) 2020-06-06 10:00:01 +01:00
tests Save preferences JSON using UTF-8 encoding. Bulletproof prefs load. (#2657) 2020-06-06 10:00:01 +01:00
webapp Fix duplicate i18n keys for FR &ES (#2668) 2020-06-02 18:05:18 +01:00
pom.xml Merge pull request #2664 from OpenRefine/dependabot/maven/org.apache.maven.plugins-maven-jar-plugin-3.2.0 2020-06-03 12:45:09 -04:00