Ayush0612005 commented on PR #30514: URL: https://github.com/apache/camel/pull/30514#issuecomment-7048018642
Thanks @davsclaus. Fixed in the latest commit, as you suggested: `getBsonListBody` now uses `mandatoryConvertTo`, so the `JsonParseException` from a malformed JSON array is the cause of the `InvalidPayloadException` again. For update it is then wrapped in the existing "Invalid payload for update" `CamelMongoDbException`. The new `testMalformedByteArrayBodyKeepsTheParseError` checks that cause chain; it fails on the previous commit and passes now. I also imported `MongoClientSettings` and `MongoIterable` in the test. On the optional points: trimming in `isArrayNotation`, reading `InputStream`/`StreamCache` bodies as text, and the docs note for update and aggregate change behaviour or docs beyond this ticket, so I'd rather do them in a follow-up JIRA, if that works for you. _Claude Code on behalf of Ayush0612005_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
