[SERVER-78865] Regex $options should not serialize with "?" Created: 11/Jul/23  Updated: 29/Oct/23  Resolved: 17/Jul/23

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

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

Issue Links:
Depends
is depended on by SERVER-85070 PM-2885 Tracking: Known find correctn... Closed
Related
related to SERVER-79031 Complete TODO listed in SERVER-78865 Closed
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2023-07-24
Participants:

 Description   

After serialization with "LiteralSerializationPolicy::kToRepresentativeParseableValue", $options with the $regex operator fails to re-parse with the error

invalid flag in regex options: ? 

You can see the relevant failing tests in the query_stats_passthrough in BF-29274.



 Comments   
Comment by Githook User [ 17/Jul/23 ]

Author:

{'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}

Message: SERVER-79031: Remove completed TODOs from SERVER-78865
Branch: master
https://github.com/mongodb/mongo/commit/219f80c4e03a0230e5e4732bcc5159c77a36d0cc

Comment by Githook User [ 17/Jul/23 ]

Author:

{'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}

Message: SERVER-78865: Regex $options should not serialize with "?"
Branch: master
https://github.com/mongodb/mongo/commit/47007aa1dc173a00a95ff03618dde73429d00b0d

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