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

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Gone away
    • 2.2.1
    • None
    • HTTP Console
    • OSX, Linux
    • 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.

    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

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

            Dates

              Created:
              Updated:
              Resolved: