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

a filter string in the REST interface cannot start with nan

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Gone away
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: HTTP Console
    • Environment:
      OSX, Linux
    • Operating System:
      ALL
    • Steps To Reproduce:
      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.

      Description

      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', '{', '['

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: