[SERVER-7808] mongos allows you to specify an invalid port number Created: 30/Nov/12  Updated: 11/Jul/16  Resolved: 27/Aug/13

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: 2.2.1
Fix Version/s: 2.5.3

Type: Bug Priority: Minor - P4
Reporter: Chad Tindel Assignee: Kyle Erf
Resolution: Done Votes: 1
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-10083 mongos does not validate port and acc... Closed
is duplicated by SERVER-10244 Fail gracefully on invalid port number Closed
is duplicated by SERVER-12839 Unable to access HTTP Status Interfac... Closed
Related
related to SERVER-4062 Quoted strings in $near query results... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Mongos allows you to specify a port number above the maximum. For example, I accidentally started it on port 67017 and it started up without complaining. Of course, then you can't connect to it.

The code should detect port numbers above 65535 and fail with an appropriate error message, ideally.



 Comments   
Comment by auto [ 27/Aug/13 ]

Author:

{u'username': u'3rf', u'name': u'Kyle Erf', u'email': u'kyle.erf@10gen.com'}

Message: SERVER-7808: mongos does not validate port and accepts values outside of valid range

Signed-off-by: Matt Kangas <matt.kangas@10gen.com>
Branch: master
https://github.com/mongodb/mongo/commit/accaa87593a11453ddd799411832083bf4a906ff

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