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] Azure data table client listEntities API return string instead of binary data (breaking change & bug) #40385

Closed
DragonLi-Mi opened this issue May 29, 2024 · 3 comments
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. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Tables
Milestone

Comments

@DragonLi-Mi
Copy link

Describe the bug
Azure data table client listEntities API started to have a different behavior with getEntity API. And the change start from 12.4.0. It is same result in 12.3.19.
To Reproduce
Steps to reproduce the behavior:
This is my data in azure data table
image
When I upgarde to 12.4.0. The ListEntityes API start to return binary data as String type, and break all my service.

package org.example;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.data.tables.TableClient;
import com.azure.data.tables.TableClientBuilder;
import com.azure.data.tables.models.*;

import java.time.Duration;
import java.util.ArrayList;
import java.util.stream.Stream;

public class Main {
    public static void main(String[] args) {
        String connectionString = "";

        TableClient tableClient = new TableClientBuilder()
                .connectionString(connectionString)
                .tableName("ConfigurationManagementGraphSP")
                .buildClient();

        ListEntitiesOptions listEntitiesOptions = new ListEntitiesOptions()
                .setFilter("(PartitionKey eq '636f6e66696775726174696f6e') and RowKey eq '67726170682e6a616e757367726170682d76657273696f6e'");
        PagedIterable<TableEntity> tableEntities  = tableClient.listEntities(listEntitiesOptions, Duration.ofSeconds(60), Context.NONE);
        Stream<TableEntity> result = tableEntities.stream();
        ArrayList<TableEntity> tableEntityList = new ArrayList<>();
        result.forEach(tableEntityList::add);

        TableEntity retrievedEntity = tableClient.getEntity("636f6e66696775726174696f6e", "67726170682e6a616e757367726170682d76657273696f6e");
        Object data = retrievedEntity.getProperty("value");
    }
}

image

Expected behavior
List entities API should correct return binary data as binary.

Setup (please complete the following information):

  • OS: [Windows]
  • IDE: [IntelliJ]
  • Library/Libraries: [azure-data-tables:12.4.0]
  • Java version: [11]
@github-actions github-actions bot added 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 labels May 29, 2024
Copy link

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

@jairmyree
Copy link
Member

@DragonLi-Mi Thank you for reaching out.

This is a known Tables issue and a fix for this is currently being worked on.
Thank you very much for your patience, I will update this issue when the fix has been merged.

@jairmyree
Copy link
Member

@DragonLi-Mi A fix for this issue has been included in azure-data-table 12.4.2. Please update to the latest SDK version. Thank you for reporting this issue to us.

@jairmyree jairmyree added issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. and removed needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team labels Jun 13, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2024
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. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. 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
Development

No branches or pull requests

2 participants