Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7690

a filter string in the REST interface cannot start with nan

    • ALL
    • Hide

      Query the REST interface like this: http://localhost:28017/bie/user/?filter_email=nan@yahoo.com#

      No data or collections are needed to reproduce the error.

      Show
      Query the REST interface like this: http://localhost:28017/bie/user/?filter_email=nan@yahoo.com# No data or collections are needed to reproduce the error.

      when the filter string starts with nan the REST interface throws an error:

      Query: http://localhost:28017/bie/user/?filter_email=nan@yahoo.com#

      in 2.0.2: error loading page: Number nan cannot be represented in JSON

      in 2.2.1:

      {
      "offset" : 0,
      "rows": [

      ],

      "total_rows" : 0 ,
      "query" :

      { "email" : NaN }

      ,

      Error: Parse error on line 8:
      ...uery" :

      { "email" : NaN }

      , "millis" :
      -----------------------^
      Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            praffo Pablo Raffo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: