MantisBT: master 086f3104

Author Committer Branch Timestamp Parent
dregad dregad master 2018-06-20 02:39 master 963c06fe
Affected Issues  0021376: Error in upgrade process 1.2.17 --> 1.3.0
 0024416: Improve handling of unserialize errors when upgrading
Changeset

Upgrade: improve handling of unserialize errors

Merging PR https://github.com/mantisbt/mantisbt/pull/1359

In MantisBT 1.3, the method used to store config, token and filter data
changed from serialize to JSON. Upgrade steps 193, 194 and 195 were
added to convert legacy data to the new format.

This frequently caused the upgrade process to fail when unserialize()
could not interpret the data, but the MantisBT installer just aborted
without providing any useful information to the admin.

This improves the error reporting, clearly identifying the offending
record so that the admin can take appropriate action to fix the problem.

Fixes 0024416, 0021376 (and maybe others too)

mod - core/error_api.php Diff File
mod - core/install_helper_functions_api.php Diff File
mod - core/utility_api.php Diff File