lizhimins opened a new pull request, #1510:
URL: https://github.com/apache/rocketmq-clients/pull/1510

   ### Which Issue(s) This PR Fixes
   
   Fixes #1509
   
   ### Brief Description
   
   `FifoProducerBuilder::withConfiguration` dropped the configuration's resource
   namespace, so FIFO producers never sent the `x-mq-namespace` header and 
failed
   authentication (`UNAUTHORIZED: User:<AccessKey> is not found`) on namespaced
   instances. `ProducerBuilder::withConfiguration` already forwards the 
namespace;
   this mirrors that single line in the FIFO builder so both producers behave
   consistently.
   
   ```cpp
   producer_impl_->withResourceNamespace(configuration.resourceNamespace());
   ```
   
   ### How Did You Test This Change?
   
   Built the C++ SDK from this branch and ran the normal / FIFO / delay /
   transaction producer examples against an Apache RocketMQ 5.5.1 gRPC v2 proxy
   with per-instance namespace mapping (each language/client uses its own
   namespaced instance and credentials):
   
   - Before the fix: the normal producer succeeded, but the FIFO producer failed
     with `UNAUTHORIZED: User:<AccessKey> is not found` because the namespace
     header was missing.
   - After the fix: all four producers authenticate and send successfully with 
the
     same namespaced configuration (FIFO completed 256/256 messages; delay and
     transaction producers also succeeded), confirming the namespace is now
     propagated and the proxy resolves the correct instance.


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