Cannot filter using binary data if BSON is of type 3

XMLWordPrintableJSON

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

      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
            Reporter:
            Rick Jones
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: