MassiveCraft/Factions — Issue #70: board.json wiped on error
Author: eXeC64
Created: 2011-12-18 19:40:24+00:00
State: open

We're not sure how it happened but somehow a syntax error found its way into the board.json file. When factions tried to load this file, it failed. It then proceeded to start a fresh, empty board and save that to the board.json. Wiping all of the faction land claims.

This is extremely destructive behaviour. If a core file such as board.json cannot be parsed then factions should stop noisily and definitely not destroy the contents of the file.

This is also the point where we discovered our backup script was failing and the last backup was three weeks ago.

2011-12-18 20:03:53 [SEVERE] Error occurred while enabling Factions v1.7_dev (Is it up to date?): com.google.gson.stream.MalformedJsonException: Unterminated array near spawn", "tp" "tpa" ], "territory
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array near spawn", "tp" "tpa" ], "territory