[SERVER-76632] Creating view with collection name greater than 64 characters crashes with uassert Created: 27/Apr/23  Updated: 29/Oct/23  Resolved: 28/Apr/23

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

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

Issue Links:
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2023-05-01
Participants:
Linked BF Score: 135

 Description   

When creating a view, the server accidentally creates a NamespaceString with just the viewOn collection name, which will no longer permit string larger than 64 characters due to this newly added validation introduced in SERVER-75529.



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

Author:

{'name': 'Matt Broadstone', 'email': 'mbroadst@mongodb.com', 'username': 'mbroadst'}

Message: SERVER-75733 SERVER-76222 SERVER-75529 SERVER-76632 SERVER-76632 Backport perf improvements to NamespaceString

(cherry picked from commit 3e76161bc537343aa585b305c068b1910578c07f)
(cherry picked from commit 7cc71f7d5f29a5850a4d186b9554df3dcb407117)
(cherry picked from commit 7c1ed6898f9004cf7aa9b2e16371fa83c72b3ba3)
(cherry picked from commit 95782eb4c729cd341ae2398863faa8292d8abd4e)
(cherry picked from commit bcff3cee04973b3ab91b78a70ca6b5740f22e1a0)
Branch: v7.0
https://github.com/mongodb/mongo/commit/57cb7734d42bad79f636e9be2ad313398614e83e

Comment by Githook User [ 28/Apr/23 ]

Author:

{'name': 'Matt Broadstone', 'email': 'mbroadst@mongodb.com', 'username': 'mbroadst'}

Message: SERVER-76632 Add missing symbolic constant to assertion message
Branch: master
https://github.com/mongodb/mongo/commit/bcff3cee04973b3ab91b78a70ca6b5740f22e1a0

Comment by Githook User [ 28/Apr/23 ]

Author:

{'name': 'Matt Broadstone', 'email': 'mbroadst@mongodb.com', 'username': 'mbroadst'}

Message: SERVER-76632 Use view db when validating viewOn collection name
Branch: master
https://github.com/mongodb/mongo/commit/95782eb4c729cd341ae2398863faa8292d8abd4e

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