Bug 33879 - Support proxy/https
Support proxy/https
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: univention-base-files
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-x
Assigned To: UCS maintainers
:
Depends on:
Blocks: 34706
  Show dependency treegraph
 
Reported: 2014-01-09 12:09 CET by Dirk Wiesenthal
Modified: 2017-08-08 07:10 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2014-01-09 12:09:06 CET
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.
Comment 1 Alexander Kläser univentionstaff 2014-04-30 12:42:39 CEST
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'}
Comment 2 Alexander Kläser univentionstaff 2014-06-13 18:10:46 CEST
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
Comment 3 Stefan Gohmann univentionstaff 2017-06-16 20:38:46 CEST
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.
Comment 4 Stefan Gohmann univentionstaff 2017-08-08 07:10:37 CEST
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.