Skip to content

Not able to find contact if name contains double quotes #347

@sevendark

Description

@sevendark

SDK you're using (please complete the following information):

  • Version 4.26.0

Describe the bug
i have a xero contact: asd"asd'asd"

i try to use get contacts api to get it by where condition.

String where = "Name==\"asd\"asd'asd\"\""
String where = "Name==\"asd\\\"asd'asd\\\"\""
String where = "Name==\"asd\\\\\"asd'asd\\\\\"\""

both returning

{
  "ErrorNumber": 16,
  "Type": "QueryParseException",
  "Message": "Syntax error"
}

Expected behavior
get contact

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions