Skip to content

Improve driver handling of strings containing null bytes #3164

Closed

Description

@danielmewes

It was pointed out in #2699 that trying to send a string that contains a null byte to the server through the Python client results in a "RqlClientError: Client is buggy (failed to deserialize query)" error.
I believe that this is a regression that resulted from us switching to a JSON protocol, since the server is now unable decode strings with null bytes upon receiving them, which hadn't been a problem with protocol buffers.

We should check for null characters on the client before sending the string to the server to make this more user friendly. We also have to test this for the JavaScript and Ruby driver.

Activity

  1. modified the milestones: , 1.16 on Oct 9, 2014
  2. modified the milestones: , 1.16 on Nov 3, 2014
  3. modified the milestones: , on Jan 30, 2015
  4. danielmewes commented on Feb 13, 2015

    @danielmewes
    MemberAuthor

    @segphault found that we can reproduce the same or a related problem in JavaScript simply by running
    r.expr("\u0000")

  5. danielmewes commented on Apr 14, 2015

    @danielmewes
    MemberAuthor

    This is already fixed by the branch for #3844 (errors about nulls in strings are now generated by the server, not by the driver). Closing as duplicate.

  6. modified the milestones: duplicate, on Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions