[SERVER-25802] DurableViewCatalog::iterate() must check for pipeline type before applying callback Created: 25/Aug/16  Updated: 02/Sep/16  Resolved: 26/Aug/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 3.3.11
Fix Version/s: 3.3.12

Type: Bug Priority: Major - P3
Reporter: Kyle Suarez Assignee: Kyle Suarez
Resolution: Done Votes: 0
Labels: read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

ViewCatalog::reloadIfNeeded_inlock() calls BSONElement::Obj(), which throws a UserException if the element is not of type Object. DurableViewCatalog::iterate() should prevent this from ever happening by first checking the type of the "pipeline" field before applying the callback to the record.



 Comments   
Comment by Githook User [ 26/Aug/16 ]

Author:

{u'username': u'ksuarz', u'name': u'Kyle Suarez', u'email': u'kyle.suarez@mongodb.com'}

Message: SERVER-25802 DurableViewCatalog::iterate must check pipeline

When iterating through the DurableViewCatalog, check that each view definition
has a "pipeline" field that is an array before applying the callback.
Branch: master
https://github.com/mongodb/mongo/commit/18f6dcda94ddabc4a8731cb9d5138aa7b1c223fe

Generated at Thu Feb 08 04:10:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.