[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: |
|
||||
| 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: When iterating through the DurableViewCatalog, check that each view definition |