Univention Bugzilla – Bug 40070
Self Service links to do not honor non-default ports
Last modified: 2016-01-13 13:10:54 CET
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
When I click "change password" I am taken to
which is not the same machine - if available at all.
I expect the non-default port to also be used.
Created attachment 7316 [details]
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.
r66663 | YAML Bug #40070
r66662 | Bug #40070: don't rewrite port on ucs-overview if accessed via non default port
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)