Univention Bugzilla – Bug 40070
Self Service links to do not honor non-default ports
Last modified: 2016-01-13 13:10:54 CET
Hello, I am accessing a UCS through a SSH tunnel, this is why I do not access it on the default port. I access it like https://localhost:1443/ucs-overview/#service When I click "change password" I am taken to https://localhost/univention-self-service/?lang=de-DE#passwordchange which is not the same machine - if available at all. I expect the non-default port to also be used. Kind regards Cornelius
Created attachment 7316 [details] patch Well the ports are hardcoded in the UCR variables and a heuristic detects if the link should go to http or https. The patch checks if a different port is used than the default port for the current scheme and adjust the links in that case. It is a generic issue for every link on the ucs-overview.
Applied the patch. This breaks links which aren't available in both HTTP and HTTPS as then the link is not available through the tunneled port. But that's the problem of the tunnel creator and a corner case which should not occur often. univention-apache.yaml: r66663 | YAML Bug #40070 univention-apache (8.0.1-4.254.201601081337): r66662 | Bug #40070: don't rewrite port on ucs-overview if accessed via non default port
OK: Code OK: manual test: * ssh -L 10443:localhost:443 10.200.3.26 * access with Firefox https://localhost:10443/ucs-overview/ * before upgrade: link to password reset without port (https://localhost/univention-self-service/?lang=en-US#passwordreset) * after upgrade: link to password reset contains port (https://localhost:10443/univention-self-service/?lang=en-US#passwordreset)
<http://errata.software-univention.de/ucs/4.1/48.html>