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

   Fixes CAMEL-26524.
   
   `createSecret` reads the secret value from the message body. A message 
without a body already fails with an `InvalidPayloadException` before the 
secret is created (CAMEL-26253), but an empty value slipped through: the secret 
was created, and adding the version then failed because Secret Manager rejects 
an empty payload, leaving a secret without a version behind.
   
   This change reads the value first and fails with an 
`InvalidPayloadException` before the secret is created when the value is empty, 
the same shape as the existing no-body check. The component documentation is 
updated to match.
   
   Tests: two new tests in `GoogleSecretManagerCreateSecretTest` cover an empty 
string body and an empty stream body, verifying the Google client never 
receives a `createSecret` or `addSecretVersion` call. The module tests pass (14 
run, 0 failures).


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