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

Table: Characters encoded by our layer should be automatically decoded #257

Closed
christav opened this issue Feb 22, 2013 · 3 comments
Closed
Milestone

Comments

@christav
Copy link
Contributor

If we put in illegal unicode chararacters, our table layer will encode those characters. But when retrieved, the user gets back not what they put in, but instead the encoding they didn't know about.

Things done by the layer should be automatically undone so the user neither knows nor cares.

For example:

        String partition = "001";
        String row = "insertEntityEscapeCharactersRoundTripsFromService";
        Entity insertedEntity = new Entity().setPartitionKey(partition).setRowKey(row)
                .setProperty("test", EdmType.STRING, "\u0005")
                ;

        service.insertEntity(TEST_TABLE_2, insertedEntity);

        GetEntityResult result = service.getEntity(TEST_TABLE_2, "001", "insertEntityEscapeCharactersRoundTripsFromService");
        assertNotNull(result);

        Entity entity = result.getEntity();

        assertNotNull(entity.getProperty("test"));
        String actualTest1 = (String) entity.getPropertyValue("test");
        assertEquals("", actualTest1);

Note that user stored the string "\u0005" (a single character, unicode code point 5), but what came back was the string ""

@jcookems
Copy link
Contributor

Should investigate what .NET does, to do they same thing they are doing.

@guangyang
Copy link
Contributor

Candidate

@gcheng
Copy link

gcheng commented Jun 25, 2014

no longer applicable.

@gcheng gcheng closed this as completed Jun 25, 2014
sima-zhu pushed a commit to sima-zhu/azure-sdk-for-java that referenced this issue Mar 21, 2019
* Add file request body

* More rx adapter

* Add more code

* Implement shared channel pool

* Functional impl of shared channel pool

* Clean ups

* Rename RxNetty -> Netty

* Implement LRU for multi hash map

* Fix checkstyle

* add netty client & netty adapter

* Merge and fix errors

* Use an executor for pooling

* Fix 1 core machine hanging

* Checkstyle
mbhaskar added a commit to mbhaskar/azure-sdk-for-java that referenced this issue Oct 31, 2019
Adding test to drain all the documents (Azure#257)
mbhaskar added a commit that referenced this issue Nov 6, 2019
* Enabling ignored query tests.

* Porting query plan from v2

* Fixing failing tests
Disabling non value aggregates

* Porting offset limit support from V2
Adding test to drain all the documents (#257)

* Fixing failing tests

* Fixing failing tests
navalev pushed a commit to navalev/azure-sdk-for-java that referenced this issue Dec 24, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants