You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using a storage account SAS with Read and List permissions, attempting to delete a table no longer throws an error, despite the fact that a REST error is returned by the service. This is a regression from previous builds of the SDK.
To Reproduce
Run the following code snippet:
// Make sure the SAS only has Read and List permissions, such as:// sv=2021-04-10&ss=btqf&srt=sco&st=2022-04-13T16%3A32%3A09Z&se=2022-04-14T16%3A32%3A09Z&sp=rl&sig=...consttable=`testsasdel${process.hrtime.bigint()}`;constkeyClient=TableClient.fromConnectionString(accounts.cralvordtest02.connectionString,table);constsasClient=TableClient.fromConnectionString("<SAS CONNECTION STRING>",table);try{console.log("Creating table...");awaitkeyClient.createTable();console.log("Deleting table...");awaitsasClient.deleteTable();console.log("...done");}catch(error){console.error(error);}
Observe the console output.
Expected behavior
A REST error should be output to the console and "...done" should not be output.
The text was updated successfully, but these errors were encountered:
ghost
added
the
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
label
Apr 13, 2022
It looks like we missed re-throwing the exception when the status code is not 404 when migrating to the new tracing version #20399. I'll send out a fix soon
Describe the bug
When using a storage account SAS with Read and List permissions, attempting to delete a table no longer throws an error, despite the fact that a REST error is returned by the service. This is a regression from previous builds of the SDK.
To Reproduce
Expected behavior
A REST error should be output to the console and "...done" should not be output.
The text was updated successfully, but these errors were encountered: