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

REST Interface cannot query string of numbers

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Usability
    • None
    • Replication
    • ALL
    • Hide

      db.test.insert({_id:1})
      db.test.insert({_id:"1", val:"success"})

      //Returns only the int value
      curl http://localhost:28017/test/test/?filter__id=1

      There is no way to query out the "success" document using the REST interface alone. Using various quotation marks will only get you string escaped quotes.

      Show
      db.test.insert({_id:1}) db.test.insert({_id:"1", val:"success"}) //Returns only the int value curl http://localhost:28017/test/test/?filter__id=1 There is no way to query out the "success" document using the REST interface alone. Using various quotation marks will only get you string escaped quotes.

    Description

      The rest interface will not allow you to query a string of numbers, these are always coerced to an integer value

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            david.hows David Hows
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: