Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39195

Fix getUserDir to not solely rely on env var HOME

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.1.10
    • 3.6.10
    • None
    • None
    • Fully Compatible
    • v4.0, v3.6
    • Dev Tools 2019-02-11, Dev Tools 2019-02-25, Dev Tools 2019-03-11, Dev Tools 2019-03-25
    • 0

    Description

      Shell should not rely solely on env var HOME. It's very often not set at all when launching scripts e.g from cron or other apps. This causes shell to output a warning that it could not save .dbshell and thus making it very hard to parse output from shell as it would result in malformed JSON when retrieving data.

      Attachments

        Activity

          People

            adam.martin@mongodb.com ADAM Martin (Inactive)
            yuxael Miłosz Suchy
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: