JSON materialization code should be resilient to incorrect JSON documents #32194
Labels
area-json
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
Servicing-approved
type-bug
Milestone
This JSON materialization code needs to be made resilient to malformed JSON content. In general, when reading JSON tokens, we should be defensive and immediately throw for any unexpected token. We should also do a pass over other JSON processing code (especially anything with flow control/loops) and ensure that it's resilient.
Note: this was discovered while porting JSON owned entity support to PostgreSQL (test JsonQueryAdHocTestBase.Junk_in_json_basic_no_tracking). At this point I'm still investigating what caused the incorrect JSON document, but we should be resilient to this in any case.
The text was updated successfully, but these errors were encountered: