-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#: Calling grant on a EncryptionKey throws Parameter count mismatch #2375
Comments
I'm having the same error message when trying to add a SqsEventSource. v0.31 |
Having save error when trying to addContainer to taskDefinition |
Was able to repro using:
|
After some investigation: relates aws/jsii#404 When deserializing callback arguments, the wrong number of arguments get passed to the callback method here: In the above GrantEncryptDecrypt() example, a callback to Grant() is created, with 5 arguments. The first is an IIGrantable and the other fives are strings. They should have been casted as an array of string[] The signature for Grant() is:
Hence the blow up. Original root cause: I am lacking background on the matter. Any idea @RomainMuller ? |
Hitting this issue as well |
This might be fixed in the next version. |
This should be fixed on the current release! |
Describe the bug
Calling testKey.GrantEncryptDecrypt(new Anyone()); throws System.Reflection.TargetParameterCountException: Parameter count mismatch.
on the GrantEncryptDecrypt or any Grant part
To Reproduce
Expected behavior
The grant to happen, worked in 0.28
Version:
The text was updated successfully, but these errors were encountered: