aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
68 stars 13 forks source link

AWSSDK.DAX.Client GetItemAsync throws NullReferenceException when permissions are missing #512

Closed anjalichawlaa closed 3 months ago

anjalichawlaa commented 1 year ago

Describe the bug

We have a service where we have implemented DAX using AWSSDK.DAX.Client for .Net Nuget package version 2.1.0. If we don't give permission 'dax:GetItem' to the service while fetching data from DAX, we don't get a specific error. Instead we get a general error 'NullReferenceException'.

Sample Code - ClusterDaxClient client; await client.GetItemAsync(request);

Expected Behavior

We expect to see a specific exception like 'AccessDeniedException' or 'MissingPermissionsException' instead of NullReferenceException.

Current Behavior

Screenshot 2023-04-03 211006

We are getting NullReferenceException while accessing DAX when permissions are missing.

Reproduction Steps

Skip the permission 'dax:GetItem' from user IAM policy accessing DAX. call clusterdaxclient getitemasync method. Sample code - ClusterDaxClient client; await client.GetItemAsync(request);

Possible Solution

No response

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

AWSSDK.DAX.Client 2.1.0

Targeted .NET Platform

.Net 6

Operating System and version

AmazonLinux

ashishdhingra commented 1 year ago

Communicated to the DAX team to look at the issue.

ashishdhingra commented 1 year ago

P85058576

ashishdhingra commented 1 year ago

DAX-6509

ashishdhingra commented 1 year ago

@anjalichawlaa DAX team has classified this is a feature request. They have created an item in their backlog. Unfortunately, we cannot provide any definitive timelines when this feature request would be addressed. We would post any updates here as we receive them.

Thanks, Ashish

poloroid commented 10 months ago

@ashishdhingra Sorry to hijack this comment thread. How can we get in touch with the DAX team concerning the aws v3 sdk for non-control plane operations? It would be nice to have a roadmap or timeframe of availability. There is little to no feedback on the issue raised in the aws-sdk issue.

ashishdhingra commented 3 months ago

Thank you for your feedback. We've let the responsible internal team know and they've placed this on their backlog. We can't share specific timelines on when this might be implemented in GitHub; you should monitor the AWS News Blog for updates.

github-actions[bot] commented 3 months ago

This issue is now closed.

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.