[JAVA-4353] Support authorizedCollections option for listCollections helpers Created: 19/Oct/21  Updated: 19/Jan/24  Resolved: 08/Dec/23

Status: Closed
Project: Java Driver
Component/s: Command Operations
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Valentin Kavalenka
Resolution: Done Votes: 0
Labels: FY24Q4, size-xsmall, spec-compliance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Issue split
split from DRIVERS-1393 Support authorizedCollections option ... Implementing
Epic Link: 5.0 Breaking Changes
Server Compat: 4.0
Quarter: FY24Q4
Upstream Changes Summary:

DRIVERS-1393:
Drivers should sync with mongodb/specifications@15302d2 which introduced the authorizedCollections option to the three listCollections methods: listCollections, listCollectionNames, listMongoCollections.

 

Backwards Compatibility: Major Change
Documentation Changes: Needed
Documentation Changes Summary:

Add to what's new that we added support for the `authorizedCollections` option of the `listCollections` command (https://docs.mongodb.com/manual/reference/command/listCollections/). This option can now be configured via the result of the `MongoDatabase.listCollectionNames` methods.

This change

  • preserves source-code compatibility: existing source code that calls the changed methods does not have to be changed;
  • breaks binary compatibility: existing binary (compiled) code that calls the changed methods will not work; existing source code that calls the changed methods has to be recompiled against the updated driver dependency.

 Description   

This ticket was split from DRIVERS-1393, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 08/Dec/23 ]

Author:

{'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}

Message: Support `authorizedCollections` option for `listCollections` helpers (#1270)

JAVA-4353
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a03649cb24456f53db45e3a332c99d40a124748e

Comment by Jeffrey Yemin [ 24/Jan/22 ]

For anyone waiting for this feature in the Java driver: we realized on the PR that implementing this feature would break binary compatibility. See PR discussion here. On that thread it's noted that if necessary we could implement this feature in a non-breaking way by adding new methods with different names, e.g. listCollectionsWithOptions, but we decided against. If there is sufficient interest in this feature, we can reconsider that decision.

Generated at Thu Feb 08 09:01:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.