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

REST API query issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Environment:
      FreeBSD 8.0
    • Operating System:
      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

            Assignee:
            redbeard0531 Mathias Stearn
            Reporter:
            lukaslehner Lukas Lehner
            Participants:
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: