[SERVER-76392] Collection validation hook should not error when trying to validate a view Created: 21/Apr/23  Updated: 29/Oct/23  Resolved: 21/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 6.0.7

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Execution Team 2023-05-01
Participants:
Linked BF Score: 34

 Description   

Validating a view is not supported. We pass a filter to getCollectionInfos() to only fetch collections but nothing is preventing the collection from being dropped and recreated as a view.



 Comments   
Comment by Githook User [ 03/May/23 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-76392 Collection validation hook should not error when trying to validate a view

(cherry picked from commit 690a6e5ed8e8afb60c8ad345c54282a55481241c)
Branch: v6.0
https://github.com/mongodb/mongo/commit/e5d17f8e2d673c04d72f2dd61887a48d36726c79

Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-76392 Collection validation hook should not error when trying to validate a view
Branch: master
https://github.com/mongodb/mongo/commit/690a6e5ed8e8afb60c8ad345c54282a55481241c

Generated at Thu Feb 08 06:32:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.