Bug 33542 - App-center doesn't work through proxies
App-center doesn't work through proxies
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 3.1
Other Linux
: P3 normal (vote)
: UCS 3.2-0-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-22 18:02 CET by Kevin Dominik Korte
Modified: 2014-01-29 11:20 CET (History)
4 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 Kevin Dominik Korte univentionstaff 2013-11-22 18:02:39 CET
When the server can only reach the appcenter repository through a proxy installing or updating apps does not work. The Problem is that the appcenter is reaching out through https while the ucs variables sets only the http environment variables.

Ticket#: 2013112221005825
Comment 1 Alexander Kläser univentionstaff 2013-11-25 14:46:21 CET
Can the problem be reproduced with UCS 3.2? In the product tests for the App center, I tried the access via a proxy and that seemed to be fine.
Comment 2 Dirk Ahrnke 2013-11-26 09:33:04 CET
The problem occured when trying to run "univention-add-app zarafa" according to http://download.zarafa.com/univention-zarafa-upgrade.html.
The App Center was accessible through UMC.

A simple test was to fetch https://appcenter.software-univention.de with wget. This fails as long as https_proxy is not set in the environment.
At the time we added https_proxy manually in /etc/profile the wget test as well as univention-add-app succeeded.

As far as I can see there is no definition of something like "proxy/https" in 3.2 and "proxy/http" will just create http_proxy in the environment.

It might be worth checking if this could be a generic feature request as it does not just affect App Center access.
Comment 3 Dirk Wiesenthal univentionstaff 2014-01-09 12:11:00 CET
Fixed univention-add-app in
  univention-updater 9.0.38-5.1240.201401091119

YAML updated

As for the generic feature request: Sounds reasonable. I did not fix it generically with this bug because of possible incompatibilities (and the numerous places that would need adjustments) within an errata update.

I opened Bug#33879 for that.
Comment 4 Felix Botner univentionstaff 2014-01-09 18:07:57 CET
OK, 

works as expected

before:

univention-add-app -l zarafa
Traceback (most recent call last):
  File "/usr/sbin/univention-add-app", line 82, in <module>
    requested_app = Application.find(component_id)
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py", line 475, in find
    for application in cls.all():
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py", line 612, in all
    cls._get_category_translations(fake=not localize)
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py", line 489, in _get_category_translations
    fp = urlopen(url)
  File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/util.py", line 97, in urlopen
    return urllib2.urlopen(request)
  File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.6/urllib2.py", line 391, in open
    response = self._open(req, data)
  File "/usr/lib/python2.6/urllib2.py", line 409, in _open
    '_open', req)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 1192, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.6/urllib2.py", line 1159, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno -2] Name or service not known>

after:

univention-add-app -l zarafa
09.01.14 18:07:40.433  MODULE      ( PROCESS ) : Downloading "https://appcenter.software-univention.de/meta-inf/3.2/index.json.gz"...


OK - YAML
Comment 5 Moritz Muehlenhoff univentionstaff 2014-01-29 11:20:34 CET
http://errata.univention.de/ucs/3.2/39.html