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

REST API query issue

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 1.6.2
    • Querying
    • None
    • FreeBSD 8.0
    • ALL

    Description

      while querying the rest api with
      http://localhost:28017/db/col/?filter__id=f2ce2c369e6660ba3b1397f0
      gives back correctly the document saying
      query: {
      _id: "f2ce2c369e6660ba3b1397f0"
      }

      but http://localhost:28017/db/col/?filter__id=5cdf505726442b3f4114851a
      gives zero because it understands the filter as
      query: {
      _id: 5
      }

      simply said, if _id starts with an number, the rest is ignored and
      therefore invalid.

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            lukaslehner Lukas Lehner
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: