summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils_extended.cpp
AgeCommit message (Collapse)Author
2024-08-21SERVER-93800: Implement appendFile() in mongo shell extensions (#26325)William L Qian
GitOrigin-RevId: 733b6eacf1cda8199440ac0ceeb963f4d155c3a6
2024-05-17SERVER-84609 Define a version for Aladdin MD5 (#19406)adriangzz
GitOrigin-RevId: 6f66f4d07b5c7e263d18d028410f445e943c2d88
2024-05-11SERVER-87392 Expose a getStringWidth helper to the test runner (#19531)Matt Broadstone
GitOrigin-RevId: 990d3a0f1b16a5e29566682913c0288378c89e4c
2023-09-23SERVER-81059 bulk-revert of include of boost iif.hppBilly Donahue
2023-07-28SERVER-79463 Handle null fields properly in the shell decompressBSONColumn() ↵Erin Liang
helper
2023-07-28SERVER-79463 Handle null fields properly in the shell decompressBSONColumn() ↵Erin Liang
helper
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2023-05-23SERVER-77327: replace verify() with MONGO_verify()Colin Stolley
2023-03-24SERVER-74649 Dump Compressed BSONColumn as hexMatt Kneiser
2022-12-20SERVER-71967: Add a `writeBsonArrayToFile` shell method.Daniel Gottlieb
2022-12-08SERVER-71876 writeFile now works when passing a relative pathAlexander Neben
2022-07-20SERVER-68153 Create shell helper to decompress BSONColumnGregory Wlodarek
2022-06-17SERVER-67357 deflake test and add better diagnosticsAndrew Shuvalov
2022-05-26SERVER-60440 Upgrade boost to 1.79.0Andrew Morrow
- Reapply the fix for SERVER-46008 for boost 1.79.0 - Reapply the slist fix from SERVER-44079 to boost 1.79.0 - Reapply the fix from SERVER-55204 to boost 1.79.0
2022-05-06SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue
2022-04-28SERVER-41353 replace errnoWithDescription with an API based on std::error_codeBilly Donahue
2022-01-13SERVER-27209 Eliminate dangerous BSONElement string extraction methodsMatt Kneiser
- Fix: Change return type of BSONObj::getStringField to include size (StringData vs. char*). A char* only contains the data with an ending NULL termination. Whereas a StringData contains data + size so caller knows how to interpret data if there are embedded NULLs. - Cleanup: Remove old tag - CachedSizeTag - that disambiguated BSONElement ctors. A dangling reference to 'maxLen' in a comment led me to this historical issue. $ git log -S'maxLen' -- src/mongo/bson/bsonelement.h commit 0d38ef5 Author: Mathias Stearn mathias@10gen.com Date: Tue Dec 19 14:23:08 2017 -0500 SERVER-32302 Compute BSONElement sizes eagerly - Test: Add tests for NULL bytes being returned by getStringField - $ ninja -j400 +bson_obj_test - Cleanup: Move BSONElement::valuestr() from public to private - Cleanup: Remove BSONElement::valuestrsafe() - Cleanup: Remove all external callers of valuestr/valuestrsafe and cleanup their callsites with better alternatives. - Cleanup: Make multi-line BSONElement & BSONObj public API comments conform to style guidelines - Nit: Fix spelling in a comment
2021-08-12SERVER-59236 add shell function to recursively copy a directoryRichard Samuels
2021-07-26SERVER-58420 Clamp safely the input value of changeUmask.Rishab Joshi
2021-02-23SERVER-47936 Implement a new shell helper to copy file rangesGregory Wlodarek
2020-07-01SERVER-49151 Fix malformed LOGV2 and assertion IDsAmirsaman Memaripour
2020-06-26SERVER-44968 Remove useless BSONVersion enum classFaustoleyva54
2020-05-30SERVER-48311 Fix free_monitoring tests and aws_e2e_assume_role.js on WindowsAdam Cooper
SERVER-48311 use f.eof SERVER-48311 fix use of f.eof SERVER-48311 Dump file without loop SERVER-48311 libfmt changes
2020-05-29SERVER-48438 Include file name in open file assertion messagesPierlauro Sciarelli
2020-05-13SERVER-47579 Ensure cat may read files containing NULL bytesAdam Cooper
2020-04-27SERVER-47355 Propagate hygienic installation path into shell testsSpencer Jackson
2020-04-26SERVER-47735 change mongo source over to logv2Billy Donahue
- Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
2020-02-21SERVER-45567 removing util/log.h where I canGabriel Russell
o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
2020-01-13SERVER-44761 Use new readDumpFile shell helper for tests instead of bsondumpAndrew Morrow
2019-08-23SERVER-42817 Fix `boost::filesystem` error handling in shell.ADAM David Alan Martin
Not all `boost::filesystem` errors were caught in the `listFiles` function.
2019-07-27SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.1
2019-07-03SERVER-9763 Remove BSONObjBuilder append unsigned methodAlya Berciu
2019-06-12SERVER-41641 Misspelling in uassertOfer Cohen
**too big** instead of **to big** Closes #1263 Signed-off-by: dhatcher42 <daniel.hatcher@mongodb.com>
2019-06-11Revert "SERVER-4999 Normalize all hostnames to lowercase"A. Jesse Jiryu Davis
This reverts commit ad9267a722e21268d1005c1428ccad85d5a98946 (SERVER-41614).
2019-05-14SERVER-4999 Normalize all hostnames to lowercaseA. Jesse Jiryu Davis
Hostnames passed to replSetInitiate, replSetReconfig, addShard, etc. are all normalized by replacing ASCII uppercase characters with lowercase characters, consistent with how MongoDB drivers treat hostnames. The shell's getHostName() function now returns the hostname lowercased. Fixes undefined behavior in mongo::str::toLower().
2019-04-09SERVER-40476 remove mongoutils::strBilly Donahue
Rename utils/mongoutils/str.h => utils/str.h Rename namespace mongoutils::str => str Rename mongo::strcasecmp => str::caseInsensitiveCompare.
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2019-01-11SERVER-30711: scope_guard rewrite, to avoid -Werror=noexcept-typeBilly Donahue
Macro ON_BLOCK_EXIT(...) now takes a single callable, Some renames: Dismias -> dismiss MakeGuard => makeGuard
2018-11-20SERVER-38066 Shell utils should allow files to be opened in binary modeLouis Williams
2018-10-26SERVER-36977 Set process umask before creating log fileJonathan Reams
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2018-07-27SERVER-24391 Prompt for password on user creation or password change via the ↵Kashish Garg
shell
2018-05-05SERVER-34805 Refactor the network libraries and move messages types to ↵Andrew Morrow
rpc/protocol
2018-01-04SERVER-32302 Introduce BSONObjStlIterator as a proper stl-style iteratorMathias Stearn
2016-10-19SERVER-25549 re-enable read_only_sharded suiteEsha Maharishi
2016-09-30SERVER-25839 Improve shell 'mkdir' utilitysamantharitter
2015-06-20SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto
2015-01-15SERVER-13256 Remove pch.hAndrew Morrow
2015-01-15SERVER-13256 Add usings and qualifications for names from namespace stdAndrew Morrow
2015-01-05SERVER-13256 Prohibit new uses of pch.hAndrew Morrow