[SERVER-8030] mongo shell crashes with missing host Created: 26/Dec/12 Updated: 11/Jul/16 Resolved: 13/Mar/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.2.1 |
| Fix Version/s: | 2.4.6, 2.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Roy Smith | Assignee: | Tad Marshall |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu Precise Linux dev1.songza.com 2.6.32-347-ec2 #52-Ubuntu SMP Fri Jul 27 14:38:36 UTC 2012 x86_64 GNU/Linux |
||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | Run "mongo /anything". |
||||||||
| Participants: | |||||||||
| Description |
|
$ mongo /songza |
| Comments |
| Comment by auto [ 29/Jul/13 ] |
|
Author: {u'username': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: |
| Comment by auto [ 29/Jul/13 ] |
|
Author: {u'username': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: Validate that the "URL" passed to the connect() function matches one of the |
| Comment by auto [ 13/Mar/13 ] |
|
Author: {u'date': u'2013-03-13T13:50:02Z', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: |
| Comment by Tad Marshall [ 11/Mar/13 ] |
|
The jstests/connection_string_validation.js test checks two "bad" IPv6 connection strings, but no "good" (working) ones, so I'll add another test to verify that we can validate and use valid IPv6 connection strings. |
| Comment by auto [ 11/Mar/13 ] |
|
Author: {u'date': u'2013-03-10T17:34:11Z', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}Message: Validate that the "URL" passed to the connect() function matches one of the |
| Comment by Tad Marshall [ 09/Mar/13 ] |
|
The massert producing the stack trace is from commit 421a6fbd20c96f28db154ac10354523aedd610c5 . |
| Comment by Tad Marshall [ 26/Dec/12 ] |
|
The code issues a uassert if the port is bad, but issues an massert if the entire host string is empty (which it is because the slash is interpreted as a separator between the host:port and the database name). It should issue a uassert on an empty host string instead of an massert since this is user-provided data and not a program error. |