Skip to content

Conversation

@MouhsinElmajdouby
Copy link
Member

Fixes #188

When a secret stored in AWS Secrets Manager contains plain text and the fieldName parameter is set to an empty string, an IllegalStateException was previously thrown.

This PR solves the problem by ensuring that the fieldName parameter is only used when it's explicitly provided and not empty.

Also added test cases for all resource providers to verify this behavior.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 10, 2025
@jeandelavarene jeandelavarene merged commit 422f724 into main Jun 10, 2025
2 checks passed
@jeandelavarene jeandelavarene deleted the fix/aws-secretsmanager-error-on-empty-fieldname-with-non-json branch June 10, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AWS] EVEN IF FIELD_NAME IS EMPTY, ERROR IS THROWN WITH FIELD_NAME PROVIDED, BUT SECRET IS NOT VALID JSON.

2 participants