[JAVA-4717] rewrapManyDataKey doesn't throw an error if missing the provider Created: 30/Aug/22  Updated: 28/Oct/23  Resolved: 23/Sep/22

Status: Closed
Project: Java Driver
Component/s: Client Side Encryption
Affects Version/s: None
Fix Version/s: 4.7.2

Type: Bug Priority: Minor - P4
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DRIVERS-2441 Error if RewrapManyDataKey is called ... Closed
related to JAVA-4766 Test that exception is thrown if Rewr... Closed

 Description   

Although, the javadoc state its required there is no actual assertion, meaning it can be used without the provider which prevents the master key being updated as expected.



 Comments   
Comment by Githook User [ 23/Sep/22 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Validate RewrapManyDataKeyOptions (#1000)

Ensure that the provider exists if a master key has been provided.

JAVA-4717
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/f791765ce60c462bba530be0520db57a1bdbf0db

Comment by Githook User [ 23/Sep/22 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Validate RewrapManyDataKeyOptions (#1000)

Ensure that the provider exists if a master key has been provided.

JAVA-4717
Branch: 4.7.x
https://github.com/mongodb/mongo-java-driver/commit/c963c714213d1a3c883c67e6432c52ad52765104

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