Ayush0612005 commented on PR #31340:
URL: https://github.com/apache/camel/pull/31340#issuecomment-7409395093

   Thanks @davsclaus and @gnodet for the reviews. I rebased on main and pushed 
a second commit:
   
   1. The conflict in the 4.25 upgrade guide is resolved. The camel-mongodb 
section comes after the new camel-core section, with the blank line before it.
   2. The upgrade guide now tells users who percent-encoded their credentials 
themselves to set the plain value, for example `password=RAW(p@ss)` instead of 
`password=RAW(p%40ss)`, since an encoded value is encoded again and fails to 
authenticate.
   3. `findDistinct` now decodes the values with 
`dbCol.getCodecRegistry().get(Document.class)`. A new test uses a collection 
with `uuidRepresentation=standard` and gets a `UUID`; with the default 
`DocumentCodec` it gets a `Binary` and fails. `toJavaValue` is now private.
   4. The upgrade guide and the "Change Streams Resume" section of the 
component page say to remove the stored token from the repository to start 
again from `changeStreamToken`.
   5. I left those parts of item 6 out and listed them in the description under 
"Not in this PR", so the ticket can stay open or get a follow-up. I can take 
the follow-up.
   
   On `validateOutputType`: it was never called on main, so removing it doesn't 
change what is validated. Calling it would have rejected `MongoIterable` with 
`aggregate`, which `MongoDbAggregateOperationIT` uses. For its other rule, 
`Document` with `findAll`, the producer already returns the list of documents, 
so nothing fails at runtime. I'd rather leave the remaining checks to the 
operations than add a partial validator.
   
   On the git history: I checked the recent changes to `MongoDbEndpoint`, 
`MongoDbProducer` and `ChangeStreamCommitManager` (CAMEL-27346, CAMEL-27193, 
CAMEL-27194, CAMEL-27259, CAMEL-27218, CAMEL-27165, CAMEL-27327, and #31191). 
None of them is reverted. The credentials encoding reuses the `encode` that 
CAMEL-27346 added to `SslAwareMongoClient`, so both client paths now encode the 
same way.
   
   The camel-mongodb unit tests pass (1142).
   
   _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]

Reply via email to