Skip to content
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

[BUG] GenerateSasUri fails when TableClient is created with ConnectionString #23404

Closed
GoradeAarti opened this issue Aug 18, 2021 · 1 comment · Fixed by #23446
Closed

[BUG] GenerateSasUri fails when TableClient is created with ConnectionString #23404

GoradeAarti opened this issue Aug 18, 2021 · 1 comment · Fixed by #23446
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Tables

Comments

@GoradeAarti
Copy link

GoradeAarti commented Aug 18, 2021

I am trying to GenerateSasUri by creating TableClient directly with ConnectionString and it says - SharedkeyCredential is Null.
looks like a hard dependency on SharedkeyCredential to generate SasUri.

I am able to generate SasUri only when I create TableClient with constructor where tableSharedKeyCredential is input e.g. (endpoint, tableName, tableSharedKeyCredential) and tableSharedKeyCredential needs AccountKey as input

Sample code which throws error for 'SharedkeyCredential' is Null:

var tableClient = new TableClient(connectionString, tableName);
var sasUri = tableClient.GenerateSasUri(
                TableSasPermissions.All,
                new DateTime(2040, 1, 1, 1, 1, 0, DateTimeKind.Utc));

I expected to work with TableClient object created with ConnectionString directly

Environment:

  • Name and version of the Library package used: Azure.Data.Tables (12.0.1)
  • Hosting platform or OS and .NET runtime version : Windows 10 .NET Framework 4.7.2
  • IDE and version : Visual Studio 16.9.10
@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Aug 18, 2021
@jsquire jsquire added Client This issue points to a problem in the data-plane of the library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Tables labels Aug 19, 2021
@jsquire
Copy link
Member

jsquire commented Aug 19, 2021

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Aug 19, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Tables
Projects
None yet
3 participants