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

REST API query issue

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.6.2
    • Component/s: Querying
    • None
    • Environment:
      FreeBSD 8.0
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: