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

Cannot filter using binary data if BSON is of type 3

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor - P4
    • Resolution: Unresolved
    • 1.14.6
    • None
    • Query
    • None
    • 5

    Description

      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.

       

       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: