[DOCS-13221] Expected boolean switch but found string Created: 13/Nov/19  Updated: 29/Oct/23  Resolved: 05/Dec/19

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Mark Callaghan Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-12989 Docs for TOOLS-2001: mongoexport comm... Closed
Participants:
Days since reply: 4 years, 2 weeks, 2 days ago

 Description   

Boolean options for the MongoDB configuration file list default values as True or False but mongod only parses true and false. I prefer that the manual get updated to change True/False to true/false to avoid confusion.

SeeĀ https://docs.mongodb.com/manual/reference/configuration-options/#systemlog-options

Steps to Reproduce

While taking m103 from MongoDB University start mongod with...

storage:
dbPath: "/var/mongodb/db"
systemLog:
path: "/var/mongodb/db/mongod.log"
destination: "file"
logAppend: True
net:
bindIp : "127.0.0.1,192.168.103.100"
port : 27000
processManagement:
fork : true
security:
authorization : enabled
operationProfiling:
mode : slowOp
slowOpThresholdMs : 50

And get this error message:

$ mongod --config m2.conf
Expected boolean switch but found string: False for option: systemLog.logAppend



 Comments   
Comment by Githook User [ 28/Jan/20 ]

Author:

{'email': 'kay.kim@10gen.com', 'username': 'kay-kim', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean options showing as String
Branch: v3.4
https://github.com/mongodb/docs/commit/cfd2cc9b7a9679c8693fc200e583cf30b25f40df

Comment by Githook User [ 05/Dec/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean options showing as String
Branch: v3.4.24
https://github.com/mongodb/docs/commit/7c12e7ef46260b2efafb6894c6738fe7388cbde8

Comment by Githook User [ 05/Dec/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean options showing as String
Branch: v3.2
https://github.com/mongodb/docs/commit/6ca070f1f1cdb3cf60632843855a0c8259e9306c

Comment by Githook User [ 05/Dec/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean options showing as String
Branch: v3.6
https://github.com/mongodb/docs/commit/8d30e424dcbe9dbc57e0778560ea66306737363a

Comment by Githook User [ 03/Dec/19 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'Kay Kim', 'username': 'kay-kim'}

Message: DOCS-13221: boolean options showing as String
Branch: v4.0
https://github.com/mongodb/docs/commit/e6f3d45a7f41e51ad6b7f13bb5a425fcadf81ba5

Comment by Githook User [ 03/Dec/19 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'Kay Kim', 'username': 'kay-kim'}

Message: DOCS-13221: boolean options showing as String
Branch: master
https://github.com/mongodb/docs/commit/4559207522cd5474aff99fc8e72936f14c05f532

Comment by Githook User [ 14/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean value for mongoldap option
Branch: v3.4
https://github.com/mongodb/docs/commit/13cf911a4cdcfd4117111ed551a3bdfb775b8628

Comment by Githook User [ 14/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean value for mongoldap option
Branch: v3.6
https://github.com/mongodb/docs/commit/5184fea93ab898e70b85149542c5f2116057c788

Comment by Githook User [ 14/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean value for mongoldap option
Branch: v4.0
https://github.com/mongodb/docs/commit/2325d60598b4150aa2f79740de18547e0109e127

Comment by Githook User [ 14/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean values in conf file
Branch: v3.2
https://github.com/mongodb/docs/commit/77bd891c002db26804b36e5e4614d3ed4ffbd674

Comment by Githook User [ 14/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean values in conf file
Branch: v3.4
https://github.com/mongodb/docs/commit/afddaa48cff2be8387f6fe3551adeff9060ae8a7

Comment by Githook User [ 14/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean values in conf file
Branch: v3.6
https://github.com/mongodb/docs/commit/01a708cf2f18d725366970e2ef0fb43f8f8a3efc

Comment by Githook User [ 14/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean values in conf file
Branch: v4.0
https://github.com/mongodb/docs/commit/b2067db5e1b1903c8c70c3637ce6c52df46472f1

Comment by Githook User [ 14/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean values in conf file
Branch: v2.6
https://github.com/mongodb/docs/commit/d30a9612f3265bb93c7e89140407fcb9eb71b824

Comment by Githook User [ 14/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean values in conf file
Branch: v3.0
https://github.com/mongodb/docs/commit/89fde2e22c5274a9809bb42196e9f6b778fffe4c

Comment by Githook User [ 14/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean values in conf file
Branch: v2.6
https://github.com/mongodb/docs/commit/3a61d885c6e1ecae39b95efed138fe0f89a653e7

Comment by Githook User [ 13/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean values in conf file
Branch: v3.0
https://github.com/mongodb/docs/commit/4cc2c2694011adba88e5757c9d744f35177a0419

Comment by Githook User [ 13/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean values in conf file
Branch: v3.2
https://github.com/mongodb/docs/commit/ec7a16601f0bf8d013f3c842b89a24df94beb7d8

Comment by Githook User [ 13/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean values in conf file
Branch: v3.4
https://github.com/mongodb/docs/commit/d9724786c7503cb229288000b56c5e54aead78ce

Comment by Githook User [ 13/Nov/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-13221: boolean values in conf file
Branch: v3.6
https://github.com/mongodb/docs/commit/66b6e18d4980e67250e2cd3ff8843b235f7808f9

Comment by Githook User [ 13/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean values in conf file
Branch: v4.0
https://github.com/mongodb/docs/commit/ed1cc33771b86afbc3d5b61502e1f1f9c4029be0

Comment by Githook User [ 13/Nov/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-13221: boolean values in conf file
Branch: master
https://github.com/mongodb/docs/commit/1304867675f0e18ff9263869380aebe8edbd36bf

Comment by Kelsey Schubert [ 13/Nov/19 ]

Thanks for the report mdcallag@gmail.com, I've moved this to the DOCS project so they can correct the issue. Once the issue is resolved there, we can update our manpages in the MongoDB server.

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