Open Bug 862300 Opened 12 years ago Updated 3 years ago

MCD autoconfig getenv does not retrieve USER variable

Categories

(Thunderbird :: Preferences, defect)

17 Branch
x86_64
FreeBSD
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: itbs, Unassigned)

Details

User Agent: Opera/9.80 (X11; FreeBSD 9.1-RELEASE amd64) Presto/2.12.388 Version/12.13 Steps to reproduce: I have setup autoconfig to retrieve preferences from my server based on user logged in at the time and set NSPR_LOG_MODULES=MCD:5, NSPR_LOG_FILE=logfile, MOZILLA_DEBUG=1. So the all.js is set to no obscure and looks to thunderbird.cfg, which is directed to url http://my.server/<user>; with refresh set. Actual results: getenv fails to retrieve the username from the env variable USER, so server errors because it doesn't get the user info required. Using displayError it displays almost gibberish- displayError("ENV USER set to: ", getenv("USER")); which prints: "ENV USER set to: failed: <user>". Expected results: It should have requested http://my.server/<user>
Severity: normal → major
Severity: major → normal
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.