COU-597 - DeserializeObject of invalid JSON in Grid JSON

Created by Warren Buckley 20 Jul 2017, 14:03:31 Updated by Claus Jensen 27 Sep 2017, 13:47:43

Relates to: COU-626

Subtask of: COU-521

A customer had an issue where invalid JSON was being stored in a grid cell on their development site & restoring the content from the development site to their local site would fail due to this.

Invalid JSON in this case was where a JSON property value was not surronded by quotes, so JSON was assuming it was an int or a bool, which it wasn't & thus failed.

We now catch this exception & log the error to the Courier log file giving us some more information as to which item it is along with the name & unique id. The unique ID will need to be looked up manually in SQL umbracoNodes table to help find the content node with the invalid data.

But with the uniqueid info we are more aware of which nodes are causing problems with invalid JSON.

1 Attachments

Comments

Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty:

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 3.1.4

Sprint:

Story Points:

Cycle: 3