[SERVER-30244] ConstDataView's Terminated<> error messages should escape non-printable terminators Created: 20/Jul/17  Updated: 30/Oct/23  Resolved: 13/Nov/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.6.0-rc4

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: neweng, platforms-interns-2017
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-10-23, Platforms 2017-11-13, Platforms 2017-12-04
Participants:

 Description   

This is especially important because the most common terminator is '\0'. This unfortunately results in a truncated message like

Overflow 15 couldn't locate terminal char (



 Comments   
Comment by Githook User [ 13/Nov/17 ]

Author:

{'name': 'Billy Donahue', 'username': 'BillyDonahue', 'email': 'billy.donahue@mongodb.com'}

Message: SERVER-30244 escape NUL in Terminated status msgs.
Branch: master
https://github.com/mongodb/mongo/commit/98dbbadf51f51369116bfb13215fc15ef1b613e5

Comment by Githook User [ 10/Nov/17 ]

Author:

{'name': 'Billy Donahue', 'username': 'BillyDonahue', 'email': 'billy.donahue@mongodb.com'}

Message: SERVER-30244-pre1 move DataType::Handler<StringData> specialization to avoid ODR hazard
Branch: master
https://github.com/mongodb/mongo/commit/dfd1d2c8317d1e9fcddcac5adf118a636caae687

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