a filter string in the REST interface cannot start with nan

XMLWordPrintableJSON

    • 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.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              DO NOT USE - Backlog - Platform Team
              Reporter:
              Pablo Raffo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: