yyqdbngt opened a new pull request, #3434:
URL: https://github.com/apache/rocketmq-dashboard/pull/3434

   ### Summary
   
   `TencentClientFactory.mapToBusinessException` maps SDK error codes to Studio 
`BusinessException` statuses (403 for denied, 422 for invalid credentials, 404 
for missing resources, 502 otherwise) and `cacheKey` scopes cached clients per 
credential/region. Neither had tests.
   
   ### Changes
   
   - `AuthFailure`/`InvalidCredential`/`SignatureFailure` codes map to `422 
Cloud credential is invalid`
   - `UnauthorizedOperation`/`AccessDenied` map to `403`, falling back to a 
default message when blank
   - `NotFound`/`ResourceNotFound` map to `404`
   - Unknown codes fall back to `502` with a prefixed message
   - `cacheKey` combines credential id and region
   
   ### Testing
   
   `mvn test -Dtest=TencentClientFactoryTest` passes: 10 tests, 0 failures (up 
from 4).


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