saravanakumar1987 opened a new pull request, #30604:
URL: https://github.com/apache/camel/pull/30604

   # Description
   
   Fixes [CAMEL-27350](https://issues.apache.org/jira/browse/CAMEL-27350).
   
   ## Summary
   
   The `alibaba-mns` producer failed without an AccessKey pair, also when 
`mnsClient` was set or autowired. It resolved the pair for each exchange, 
although it sends its requests with the set client. The producer now works with 
only `mnsClient`.
   
   - `MNSUtils.createClientConfigurations` no longer resolves `accessKey` and 
`secretKey`.
   - The record `ClientConfigurations` keeps `operation`, `queueName`, and 
`topicName`, and loses the four values that no code read.
   - Without a set client, `MNSUtils.createClient` still resolves the pair and 
fails without it, as before.
   - The description of `mnsClient` names `accessKey`, `secretKey`, and 
`serviceKeys` too.
   - The upgrade guide has a section on the record.
   
   ### Why the record changes
   
   `accessKey`, `secretKey`, `region`, and `accountEndpoint` of 
`ClientConfigurations` had no reader. The `ClientConfigurations` of the other 
seven Alibaba components hold no key, region, or endpoint. The record is 
public, so the upgrade guide has a section on the change.
   
   ## Tests
   
   - `MNSProducerWithoutKeysTest` sends, publishes, and deletes a message 
through endpoints that set `mnsClient` and no AccessKey pair.
   - Its three tests failed before the change with "authentication parameter 
'access key (AK)' not found".
   - All 39 tests of the module pass now.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran `mvn clean install -Dquickly -DskipTests` in the root folder on 
the parent commit, b1919763fb4b. Then I ran `mvn install -nsu` in the module, 
with `-DskipTests` in `catalog/camel-catalog` and `dsl/camel-endpointdsl`, and 
committed all generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   Claude Code (Anthropic) drafted the change and this text, and ran the builds 
and tests named above.
   
   _Claude Code on behalf of saravanakumar1987_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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