[KAFKA-196] Use Booleans in userInfo and rolesInfo in ConnectionValidator.java Created: 09/Feb/21  Updated: 28/Oct/23  Resolved: 10/Feb/21

Status: Closed
Project: Kafka Connector
Component/s: Sink
Affects Version/s: 1.4.0
Fix Version/s: 1.5.0

Type: Improvement Priority: Major - P3
Reporter: Brian Hess Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

ConnectionValidator calls userInfo and rolesInfo, but uses an integer instead of a Boolean for the showPrivileges and showBuiltinRoles arguments, per the MongoDB documentation: 
https://docs.mongodb.com/manual/reference/command/usersInfo/
https://docs.mongodb.com/manual/reference/command/rolesInfo/

We should convert that to use Booleans.

A pull request can be found here: https://github.com/mongodb/mongo-kafka/pull/55 



 Comments   
Comment by Githook User [ 10/Feb/21 ]

Author:

{'name': 'Brian Hess', 'email': 'brianmhess@users.noreply.github.com', 'username': 'brianmhess'}

Message: Update ConnectionValidator.java (#55)

Convert to using Booleans for userInfo and rolesInfo command, per MongoDB documentation.

KAFKA-196
Branch: master
https://github.com/mongodb/mongo-kafka/commit/442cd741689dd0e11374c5290cd68ad828185c38

Comment by Ross Lawley [ 10/Feb/21 ]

Hi brianmhess@gmail.com,

As 1.4.0 has recently been released it won't be for a while. Unless this is having real world impact.

Ross

Comment by Brian Hess [ 09/Feb/21 ]

No problem, Ross.
Do you have an ETA for the next release?

Comment by Ross Lawley [ 09/Feb/21 ]

Thanks brianmhess@gmail.com,

Marked to be fixed in the next release. Just out of interest did this issue impact you at all?

Regards,

Ross

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