Univention Bugzilla – Bug 40842
Docker Apps register their WebInterfacePortHTTP for /ucs-overview
Last modified: 2016-06-02 13:15:46 CEST
... which leads to problems as the port is not open on the host. Instead a WebInterfacePortHTTP=8080 is mapped to, say, 40001, and this port is used for mod_proxy. In fact, the correct port for an App with auto_mod_proxy=True (default) and port 8080 in the ini file is 80 (and 443).
Currently, the link generated is:
https://IP:8080/jenkins/ instead of https://IP/jenkins/
UCSOverviewCategory=False and setting the ucs/web/overview/entries/service/jenkins/... in the joinscript (and unsetting in unjoin).
The correct check is:
somewhere in register.py #_register_overview_variables
This is always False for None-Docker Apps and True by default for Docker Apps (see app.py)
This _should_ also be fixed in App.js. Instead of "if (this.isDocker && port)" in getWebInterfaceURL, one should use (this.autoModProxy && port) (which needs to be initialized in constructor similar to isDocker).
Currently, every Docker App also has AutoModProxy, so this is just a minor issue, but still buggy.
univention-app install jenkins=1.651.1
univention-app register jenkins
ucr get ucs/web/overview/service/jenkins/port_http
With and without errata update installed.
If have added tests/80_docker/74_app_ports_webinterface in
FYI: It is easier to test with jira. This App suffers from this bug without the need to edit the ini file.
Reproduced the problem by installing Jira. Fix works as expected.