[KAFKA-154] Improve json array configuration handling Created: 07/Sep/20  Updated: 28/Oct/23  Resolved: 11/Sep/20

Status: Closed
Project: Kafka Connector
Component/s: Sink
Affects Version/s: None
Fix Version/s: 1.3.0

Type: Improvement Priority: Major - P3
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Epic Link: Error Handling

 Description   

When validating json array values, provide more a helpful error message.

As many errors may come from escaping issues, if the initial parsing fails try double escaping any escaped characters so they survive the internal string parsing.



 Comments   
Comment by Githook User [ 11/Sep/20 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Improve the handling of JSON array configs

Includes the original error in the exception.
Tries to auto escape if parsing the initial string fails.

KAFKA-154
Branch: master
https://github.com/mongodb/mongo-kafka/commit/80ffbb1038e003b4c538632e8e2e5bf81d9b4902

Comment by Ross Lawley [ 07/Sep/20 ]

PR: https://github.com/mongodb/mongo-kafka/pull/34

Generated at Thu Feb 08 09:05:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.