Error getting REMOTE_USER Environment Variable

MRAB python at
Sat Feb 22 00:02:32 CET 2014

On 2014-02-21 22:48, Hobie Audet wrote:
>> How many other environment variables are doubled? All of them?
> The only other environment variable I have tried is REMOTE_ADDR, and
> that does not appear to be doubled.
>> Does the problem exist when
>> the Python script is run directly, outside
>> Abyss, or in IDLE, for example?
> The problem is with the REMOTE_USER and REMOTE_AUTH variables, which are
> set as a result of user authentication by the web browser.  Thus, they
> don't exist outside of the web server environment.
> Since my posting yesterday, I've done a LOT of fiddling around with this
> and found a couple of interesting things.  First of all, there was a
> minor typo in my web page HTML.  The closing </HTML> tag was lacking the
> last right angle bracket, so it looked like this: </HTML
> However, that doesn't seem to have affected the issue at hand.
> The second interesting thing is that this error occurs in the
> script.  If I invoke it implicitly (by pointing my browser at
>, the REMOTE_USER and REMOTE_AUTH variables are doubled.
> But if I invoke it explicitly (by pointing my browser at
>, the variables are NOT doubled and are returned
> correctly.  Strange! I hate to say it, but this sounds like a bug in the
> Abyss web server.

If it had been a bug in the os module, I'm sure plenty of people
would've already noticed, hence the suggestion to run it outside Abyss!

> I have already reported this to Aprelium support.

More information about the Python-list mailing list