[SERVER-31201] JSON Schema inside an arrayFilter should be disallowed Created: 21/Sep/17  Updated: 03/Oct/17  Resolved: 03/Oct/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Blake Oler
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-30731 Add $expr support in MatchExpression ... Closed
Related
is related to SERVER-31168 Add integration testing for $jsonSche... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2017-10-23
Participants:

 Description   

This came up when testing $jsonSchema in an arrayFilter, which should be illegal but currently there's no way to pass the allowed features flag down to MatchExpressionParser::parse().



 Comments   
Comment by Tess Avitabile (Inactive) [ 03/Oct/17 ]

It would be silly not to fix this as part of SERVER-30731, since that ticket bans $expr inside of arrayFilters

Comment by David Storch [ 27/Sep/17 ]

blake.oler, I'm assigning this to you, since it seems pretty closely related to your other work in this area.

Comment by Kyle Suarez [ 22/Sep/17 ]

I tried to do the thought exercise yesterday of what might go wrong if you used $jsonSchema in an array filter but it felt inconclusive. 3.5 Desired sounds great.

Comment by David Storch [ 22/Sep/17 ]

kyle.suarez I'm bumping the fixVersion down to "3.5 Desired". Are we aware of any specific issues caused by $jsonSchema in arrayFilters? If not, then I don't think this is a 3.6 blocker.

Comment by David Storch [ 22/Sep/17 ]

ExpressionWithPlaceholder::parse() is likely going away SERVER-31029. I'm to repurpose this ticket describe the problem as opposed to the proposed fix. If I'm interpreting this correctly, the problem is that we currently are allowing $jsonSchema in arrayFilters.

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