-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
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.
- related to
-
RUBY-2047 Test 3.6 driver against 4.2 servers
- Closed
-
SERVER-28245 Reserve error code for generic atlas error
- Closed
-
RUBY-1892 Create separate method(s) to list all collections
- Closed
- links to