Moodle

http proxy username containing a space does not work

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.9.3
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Centos 5.2 Linux version 2.6.18-92.1.13.el5
    PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:04)
    mysql Server version: 5.0.45
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

I have just upgraded from
Moodle 1.9.3+ (Build: 20081022)
to
Moodle 1.9.7+ (Build: 20100106)
on
Centos 5.2 Linux version 2.6.18-92.1.13.el5
PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:04)
mysql Server version: 5.0.45

Under HPSMoodle > Administration > Server > HTTP
I can only access the internet from the server through a proxy.

My proxy username has a space in it, it is of the form "*** **.**" where the * represents alpha numeric characters.

When I use the proxy from a shell, I use
http_proxy="http://*** **.*:password@:8080"
export http_proxy
and I know it works, as I can then do
[webman@web ~]$ wget http://api-verify.recaptcha.net/verify
-10:55:02- http://api-verify.recaptcha.net/verify
Connecting to 172.18.0.151:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `verify'

[ <=> ] 29 --.-K/s in 0s

10:55:03 (1.77 MB/s) - `verify' saved [29]

However, through Moodle, the php error logs say:
/var/log/httpd/error_log:
[Tue Jan 12 14:21:04 2010] [error] [client xx.xx.xx.xx] PHP Notice: Undefined offset: 1 in /var/www/moodle/lib/recaptchalib.php on line 128, referer: http://xxx.xxx.xxx.xxx/moodle/login/signup.php

When using recaptcha the recaptcha is displayed again, with no error message. I have curl installed.

I am not sure if this is good evidence, I have had the issue for some time but haven't had the courage to move to bug status because I am not sure how to test it. I was hoping the upgrade to 1.9.7 would solve the problem. However, when I was upgrading, the modules would not upgrade - I think it is because moodle could not access the internet through the proxy server. In my test upgrade on a local server, the modules upgraded automatically, I think over the internet.

I would be happy to try anything you suggest.

I also have put in config.php
$CFG->http_proxy= 'xx.xx.xx.xx:8080';
$CFG->http_proxyauth= '******* ***.*:***';
I am not sure why there are two places to put this information, and if so, which overrides which?

I think this may be a bug, if so, is there a work around? I find it very limiting. Thank you for your time

Activity

Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: