[JAVA-4520] Only wrap security-related errors in MongoSecurityException Created: 07/Mar/22  Updated: 30/Mar/22

Status: Backlog
Project: Java Driver
Component/s: Authentication, Error Handling
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Valentin Kavalenka Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-4354 Drivers should retry operations if co... Closed

 Description   

Currently, MongoSecurityException is used to wrap all exceptions that are caused by the authentication activity. It is possible (yet, unclear) that this was not the original intent behind the introduction of MongoSecurityException. We need to decide whether we want to change what exceptions and when are thrown by the authentication activity, and potentially, refactor authenticators accordingly. See also this discussion.

Based on a brief talk with boris.dogadov, my understanding is that in C# the situation regarding their counterpart of MongoSecurityException is similar to what we have.


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