[SERVER-47138] MSI installer produces incorrect config file Created: 26/Mar/20 Updated: 29/Oct/23 Resolved: 25/Jun/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 4.2.3 |
| Fix Version/s: | 4.4.1, 4.7.0, 4.2.10, 4.0.21 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Tomáš Herceg | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| 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: |
v4.4, v4.2, v4.0, v3.6
|
||||||||||||
| Steps To Reproduce: |
Actual output (the remaining bytes of the file are not truncated): # mongod.conf |
||||||||||||
| Sprint: | Dev Platform 2020-06-15, Dev Platform 2020-06-29 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
The MSI installer has a custom screen on which the user can enter the path to data files and logs. The mongod.cfg file is produced based on the settings on this screen. If the user selects a shorter path of the log file or data directory than defaults, an incorrect config file is produced.
I have provided a [PR #1355 on GitHub|https://github.com/mongodb/mongo/pull/1355] that should fix the issue (I wasn't able to build and test the installer, but I hope I fixed it correctly). |
| Comments |
| Comment by Githook User [ 11/Aug/20 ] |
|
Author: {'name': 'Nir Bar', 'email': 'nir.bar@panel-sw.co.il', 'username': 'nirbar'}Message: Closes #1366 Signed-off-by: Andrew Morrow <acm@mongodb.com> |
| Comment by Githook User [ 11/Aug/20 ] |
|
Author: {'name': 'Nir Bar', 'email': 'nir.bar@panel-sw.co.il', 'username': 'nirbar'}Message: Closes #1366 Signed-off-by: Andrew Morrow <acm@mongodb.com> |
| Comment by Githook User [ 06/Aug/20 ] |
|
Author: {'name': 'Nir Bar', 'email': 'nir.bar@panel-sw.co.il', 'username': 'nirbar'}Message: Closes #1366 Signed-off-by: Andrew Morrow <acm@mongodb.com> |
| Comment by Githook User [ 25/Jun/20 ] |
|
Author: {'name': 'Nir Bar', 'email': 'nir.bar@panel-sw.co.il', 'username': 'nirbar'}Message: Closes #1366 Signed-off-by: Andrew Morrow <acm@mongodb.com> |
| Comment by Andrew Morrow (Inactive) [ 02/Jun/20 ] |
|
ujr@insynergie.de - Would you mind filing a new ticket with complete details and reproduction instructions for that behavior? |
| Comment by Ulf Rößler [ 27/Mar/20 ] |
|
Great to have this fix!
BTW, AFAICT there's another bug resulting in corrupt configuration: when updating MongoDb with MSI installer. IMO the Custom Action isn't run at all in this case. Such the configuration file contains template values like %MONGODB_PATH%. |