[SERVER-30769] Mongo shell throws 'exception during autocomplete' Created: 22/Aug/17 Updated: 30/Oct/23 Resolved: 20/Sep/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 3.5.12 |
| Fix Version/s: | 3.4.10, 3.6.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Josef Ahmad | Assignee: | Mark Benvenuto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v3.4
|
||||||||||||||||||||
| Sprint: | Platforms 2017-10-02 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||
| Description |
|
$ git describe When I tab to autocomplete my collection named "collection" in my database, the shell throws the following exception: Following is a copy and paste of my mongo shell session (note I press TAB after typing in "col" to have it autocomplete to "collection")
Also note the "[thread1] uncaught exception: don't know how to show [automationNotices]" in the logs. Possibly related? |
| Comments |
| Comment by Stennie Steneker (Inactive) [ 06/Oct/17 ] |
|
guillaume.meister The fixVersion for this Jira issue is 3.5.14, so the 3.5.12 and 3.5.13 dev releases will still throw exceptions for autocomplete. Until 3.5.14 is released, a workaround would be using the 3.5.11 or older mongo shells where this bug was not present. FYI, if you want to test without executing .mongorc.js on startup you can run mongo --norc instead of deleting the rc file. This autocomplete bug is unrelated to shell extensions, though. Regards, |
| Comment by Guillaume Meister (Inactive) [ 05/Oct/17 ] |
|
same issue with 3.5.13, even after I deleted .mongorc.js Mongo-hacker is installed but I'm not using its .mongorc.js |
| Comment by Githook User [ 02/Oct/17 ] |
|
Author: {'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}Message: (cherry picked from commit 2b44ac6faf81d217a7418f0a55cc6b7f463e9dbe) |
| Comment by Githook User [ 20/Sep/17 ] |
|
Author: {'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}Message: |
| Comment by Mark Benvenuto [ 22/Aug/17 ] |
|
This is a regression from |
| Comment by Stennie Steneker (Inactive) [ 22/Aug/17 ] |
Hi Josef, I notice you are using Mongo-Hacker, which is a third party extension that overrides some of the default mongo shell behaviour. In particular, I expect this is the source of the "don't know how to show [automationNotices]" in your startup transcript. Upgrading to a newer version of Mongo-Hacker from GitHub will likely fix this error, but if not you should report in the Mongo-Hacker issue queue on GitHub. You can test without any startup scripts using mongo --norc.
I can reproduce this error using the 3.5.12 shell without any startup scripts, so this seems to be a bug unrelated to Mongo-Hacker. Autocomplete works as expected in the 3.5.11 shell. Regards, |