[SERVER-42969] Handle non-ascii characters in`USERPROFILE` environment variable. Created: 22/Aug/19 Updated: 29/Oct/23 Resolved: 29/Aug/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin, Diagnostics, Shell |
| Affects Version/s: | None |
| Fix Version/s: | 4.2.1, 4.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Johan Suárez | Assignee: | ADAM Martin (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v4.2
|
||||
| Sprint: | Dev Tools 2019-08-26, Dev Tools 2019-09-09 | ||||
| Participants: | |||||
| Description |
|
Hello! Could you please help me? I have a problem when I am opening Mongo.exe:
2019-08-22T11:27:41.166-0500 F CONTROL [main] *** unhandled exception 0xE06D7363 at 0x00007FFA0FAC9129, terminating
Afer this the process finalize
|
| Comments |
| Comment by Githook User [ 12/Sep/19 ] | ||||||||||||||||||||||||
|
Author: {'name': 'ADAM Martin', 'username': 'adamlsd', 'email': 'adam.martin@mongodb.com'}Message: (cherry picked from commit c27c4a843018761c32013810e39fd3838aa229b8) | ||||||||||||||||||||||||
| Comment by Githook User [ 29/Aug/19 ] | ||||||||||||||||||||||||
|
Author: {'name': 'ADAM Martin', 'username': 'adamlsd', 'email': 'adam.martin@mongodb.com'}Message: | ||||||||||||||||||||||||
| Comment by Danny Hatcher (Inactive) [ 23/Aug/19 ] | ||||||||||||||||||||||||
in the command line will display the current value of the variable. | ||||||||||||||||||||||||
| Comment by Johan Suárez [ 23/Aug/19 ] | ||||||||||||||||||||||||
|
@Daniel Hatcher how can I get the "{{USERPROFILE}}environment variable"? | ||||||||||||||||||||||||
| Comment by Mark Benvenuto [ 23/Aug/19 ] | ||||||||||||||||||||||||
|
You can work around this bug by unsetting USERPROFILE before invoking the mongo shell. The issue is that ANSI text is being treated as UTF-8. In the case of the original reporter, Johan Suárez, the á glyph triggered the bug since we internally tried to treat the ANSI á (i.e. 0xE1) as UTF-8. | ||||||||||||||||||||||||
| Comment by Danny Hatcher (Inactive) [ 23/Aug/19 ] | ||||||||||||||||||||||||
|
For anyone who is experiencing this problem, can you please provide your USERPROFILE environment variable? | ||||||||||||||||||||||||
| Comment by Danny Hatcher (Inactive) [ 23/Aug/19 ] | ||||||||||||||||||||||||
|
Thank you everyone for your comments. We'll take a look. | ||||||||||||||||||||||||
| Comment by Kyoseung Koo [ 23/Aug/19 ] | ||||||||||||||||||||||||
|
I know that supporting distributed transaction is the main differences,, but maybe release note is better than me. | ||||||||||||||||||||||||
| Comment by Johan Suárez [ 23/Aug/19 ] | ||||||||||||||||||||||||
|
Hello Mr. Koo, thanks for your comment!
Do you know if 4.0.12 version has significant differences with 4.2 version? | ||||||||||||||||||||||||
| Comment by Kyoseung Koo [ 23/Aug/19 ] | ||||||||||||||||||||||||
|
Hello, I have the same issue. I think it is a MongoShell issue (not mongod) because I can access my database using MongoDB Compass. This is my MongoShell output which is written below is exactly same with Johan Suárez. In my case, downgrading from 4.2 to 4.0.12 is working perfectly.
| ||||||||||||||||||||||||
| Comment by Johan Suárez [ 22/Aug/19 ] | ||||||||||||||||||||||||
|
Hello, this is the lastest log since I executed it:
2019-08-22T17:31:48.132-0500 I NETWORK [listener] connection accepted from 127.0.0.1:50109 #1 (1 connection now open) , driver: { name: "MongoDB Internal Client", version: "4.2.0" }, os: { type: "Windows", name: "Microsoft Windows 10", architecture: "x86_64", version: "10.0 (build 17763)" } }
Additionally I have installed the program 3 times and always shows the same error. | ||||||||||||||||||||||||
| Comment by Danny Hatcher (Inactive) [ 22/Aug/19 ] | ||||||||||||||||||||||||
|
Additionally, if you uninstall the tool and then re-install it using the supplied installer, do you still receive the same error? | ||||||||||||||||||||||||
| Comment by Danny Hatcher (Inactive) [ 22/Aug/19 ] | ||||||||||||||||||||||||
|
Can you please provide the full mongod log file from the last startup up until you experienced the error? | ||||||||||||||||||||||||
| Comment by Johan Suárez [ 22/Aug/19 ] | ||||||||||||||||||||||||
|
The Operating System is Windows 10 and the version Mongo is the lastest (4.2) |