Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1825

Collections cannot be listed in Atlas free tier due to system filtering

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.10.0.rc0
    • Affects Version/s: 2.8.0
    • Component/s: Atlas
    • Environment:
      Ruby 2.4.2, Mongo Ruby Driver 2.8.0 (master)
    • Fully Compatible

      When performing list_collections operation against Atlas free tier, the driver raises the following exception:

      client = Mongo::Client.new('mongodb+srv://demo:demo@apisentris-demo-thikk.gcp.mongodb.net', database: 'demo')
      
      client.database.list_collections
      > Mongo::Error::OperationFailure: unsupported type in filter (8000)

       

       

      Debug:

      D, [2019-06-03T03:24:36.998374 #25239] DEBUG -- : MONGODB | apisentris-demo-shard-00-00-thikk.gcp.mongodb.net:27017 | demo.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}, "lsid"=>{"id"=><BSON::Binary:0x70193580 type=uuid data=0x04be41b4238241e9...>}}D, [2019-06-03T03:24:36.998374 #25239] DEBUG -- : MONGODB | apisentris-demo-shard-00-00-thikk.gcp.mongodb.net:27017 | demo.listCollections | STARTED | {"listCollections"=>1, "cursor"=>{}, "filter"=>{"name"=>{"$not"=>/system\.|\$/}}, "lsid"=>{"id"=><BSON::Binary:0x70193580 type=uuid data=0x04be41b4238241e9...>}}D, [2019-06-03T03:24:37.026740 #25239] DEBUG -- : MONGODB | apisentris-demo-shard-00-00-thikk.gcp.mongodb.net:27017 | demo.listCollections | FAILED | unsupported type in filter (8000) | 0.027869272sMongo::Error::OperationFailure: unsupported type in filter (8000) from (irb):8
      

       

       Listing collections succeeds against a vanilla 4.0.10 server.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            absyah absyah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: