Univention Bugzilla – Bug 33879
Support proxy/https
Last modified: 2017-08-08 07:10:37 CEST
Currently we do not have a variable to set https_proxy in /etc/profile. This may cause problems, see Bug#33542. Easiest solution may be setting https_proxy to $(ucr get proxy/http). But correct would be a new variable: proxy/https Initial value could be proxy/http The following packages need to be touched: system-setup umc-udm umc-appcenter updater basefiles (/etc/profile and /etc/apt (?) - see also Bug#18397) installer (?) One problem is that currently umc-appcenter and umc-udm manually set the proxy in the code and use 'proxy/http' for both http and https. When we add proxy/https and an admin adjusts proxy/http afterwards, both modules may refuse to work properly. So this change may be in a sense not backward compatible. If this bug gets fixed, please see whether setting the proxy in python by hand is still required or if python uses the variable from /etc/profile.
Correct, if https_proxy is set, urllib/urllib2 etc. will automatically use this proxy. That would be nice to have in order to avoid workarounds at other places. > $ export http_proxy=httpproxy https_proxy=httpsproxy > $ python -c 'import urllib; print urllib.getproxies()' > {'http': 'httpproxy', 'https': 'httpsproxy'}
Some more proxy variables [1], the upper case versions are used be different tools (according to man also by elinks): HTTP_PROXY, http_proxy, HTTPS_PROXY, https_proxy, FTP_PROXY, ftp_proxy, RSYNC_PROXY, rsync_proxy [1] https://wiki.archlinux.org/index.php/proxy_settings#Environment_variables
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
This issue has been filed against UCS 3.2. UCS 3.2 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.