Closed gsinghlulu closed 2 years ago
Seems like a jackson issue, but wondering if it can be workaround. https://github.com/FasterXML/jackson-databind/issues/3275
@gsinghlulu is this still an issue with the SDK? I see a fix for https://github.com/FasterXML/jackson-databind/issues/3275 was made.
It looks like this issue has not been active for more than five days. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it.
Describe the bug
When calling decrypt with private key that user do not have access to, getting
com.fasterxml.jackson.databind.exc.InvalidDefinitionException
instead ofAccessDeniedException
.Here's the stacktrace
Using following version Java 17 com.amazonaws:aws-java-sdk-kms:jar:1.11.997 com.fasterxml.jackson.core:jackson-databind:jar:2.13.1
Expected Behavior
Expecting
AccessDeniedException
to be thrownCurrent Behavior
throwing
com.fasterxml.jackson.databind.exc.InvalidDefinitionException
Reproduction Steps
Use a encrypted string that is encrypted using a private key inaccessible to he user
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
1.11.997
JDK version used
17
Operating System and version
Any