Same as bug 32393, but for the REST API routes and the UI.
Created attachment 145607 [details] [review] Bug 32709: Prevent REST API and UI to crash if job has incorrect JSON Same as bug 32393, but for the REST API routes and the UI. Test plan: Enqueue a job with an incorrect JSON string in the data column Go to the background jobs list and the detail views Confirm that no the page does not explodes Notice the warning on the detail page
I think we need that. However I am not sure how to deal with logging. With this patch we are logging 4 times the same "Cannot decode data for background job id=" error, how could we do better? This patch also needs tests.