[SERVER-49040] Avoid transmission of internal-only errors Created: 23/Jun/20  Updated: 29/Oct/23  Resolved: 08/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Alex Li
Resolution: Fixed Votes: 0
Labels: sa-remove-fv-backlog-22
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-50931 Create an error category for Internal... Closed
Problem/Incident
causes SERVER-73819 DBDirectClient operations interrupted... Closed
Related
related to SERVER-71966 Investigate InternalOnly leaks Backlog
is related to SERVER-69634 Allow Missing Parsers For ErrorExtraI... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-10-31, Service Arch 2022-11-14, Service Arch 2022-11-28, Service Arch 2022-12-12
Participants:

 Description   

We store all MongoDB error codes in this file, including those that are intended for clients (e.g., AuthenticationFailed) and those that are solely for internal consumption (e.g., PeriodicJobIsStopped).

Marking the subset of error codes that should not be visible to clients will prevent potential issues caused by leakage of internal error codes to clients. One possible solution is to introduce a new ErrorCategory (e.g., InternalError) and invariant prior to transmitting error codes over the network.



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

Author:

{'name': 'Alex Li', 'email': 'alex.li@mongodb.com', 'username': 'lia394126'}

Message: SERVER-49040 Avoid transmission of internal-only errors
Branch: master
https://github.com/mongodb/mongo/commit/5e494138af456f42381ad08748cc7fbc4ace7a60

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