Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-2988

Cannot filter using binary data if BSON is of type 3

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.14.6
    • Component/s: Query
    • None
    • 5

      I have a collection in a mongo database that contains a document that looks as follows:

       

      {
        _id : ObjectId("5a70ce9198145b0628c70665"),
        DeviceId: BinData(3, 'uBUP0V1/RkWYzGT1dS/8Xw==')
      }

       

       

      In compass this shows up as

      {
        _id : ObjectId("5a70ce9198145b0628c70665"),
        DeviceId: Binary('uBUP0V1/RkWYzGT1dS/8Xw==')
      }

      In compass, I attempt to filter for this information by entering the following

      {DeviceId: Binary('uBUP0V1/RkWYzGT1dS/8Xw==')}
      

      however, no results are returned. I have also tried filtering

       

      {DeviceId: Binary('uBUP0V1/RkWYzGT1dS/8Xw=='), 3}

      I believe there is an issue with specifying searching for BinData of types that are not 0 from compass.

       

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            raj2u Rick Jones
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: