[BUG] Error deleting Table Entity with empty rowkey #36690
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
Bug Description:
We are using azure-data-tables-12.3.14 library but getting issue in deleteting table entity with empty rowkey. This was allowed operation in older 8.6.6 library.
As per the document https://learn.microsoft.com/en-us/rest/api/storageservices/Designing-a-Scalable-Partitioning-Strategy-for-Azure-Table-Storage, empty stiring is permited for rowkey and partitionkey.
Exception:
2023-09-11 11:46:47.212 ERROR [ main] com.azure.data.tables.TableClient [MsgID=] : 'partitionKey' and 'rowKey' cannot be null
To Reproduce
public Response<Void> deleteEntityWithResponse(TableEntity entity, boolean ifUnchanged, Duration timeout, Context context)
avilable in the library.Code Snippet
private Response deleteEntityWithResponse(String partitionKey, String rowKey, String eTag, boolean ifUnchanged,
Duration timeout, Context context) {
Context contextValue = TableUtils.setContext(context, true);
OptionalLong timeoutInMillis = TableUtils.setTimeout(timeout);
Expected behavior
The exeption should not be thrown while deleting a row from the azure table storage with empty partitionKey and rowKey
row.
Setup:
Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: