Bug 43671 - UDM hooks for computers are needed to adjust the links in portal.json
UDM hooks for computers are needed to adjust the links in portal.json
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Portal
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2-0-errata
Assigned To: Erik Damrose
Dirk Wiesenthal
:
Depends on: 42175
Blocks: 44513 44952
  Show dependency treegraph
 
Reported: 2017-02-28 12:37 CET by Dirk Wiesenthal
Modified: 2017-07-07 09:55 CEST (History)
5 users (show)

See Also:
What kind of report is it?: Development Internal
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): Appliance
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 2017-02-28 12:37:38 CET
When a computer changes its IP address (or more drastically, its hostname), the links in settings/portal_entry will not work.

The links are absolute for easy dumping and zero LDAP lookups in the listener.

Yet, the links have to be regenerated (but only the relevant values!)

in /usr/share/univention-portal/portal.json
"entries": [{..., "links": ["https://10.200.4.50/owncloud", "https://master50.dirk.singlemaster.intranet/owncloud"]}

If master50 decides to change his IP to 10.200.4.60, the first link needs to be exchanged. If the App happens to be installed on 2 computers, there may be 4 entries! The UDM hook may only touch 2 of them.

+++ This bug was initially created as a clone of Bug #42175 +++

There should be a graphical user interface to add links to the new portal site.
Comment 1 Erik Damrose univentionstaff 2017-05-17 12:54:01 CEST
I added the possibility to make substring matches in the LdapReplace part of univention-system-setups net scripts. There, i added a template to modify objects of udm type settings/portal_entry if an ip address has changes

r79392 univention-system-setup 10.0.10-16A~4.2.0.201705171251
r79393 yaml
Comment 2 Dirk Wiesenthal univentionstaff 2017-06-19 14:22:23 CEST
Code: OK
YAML: OK
Comment 3 Janek Walkenhorst univentionstaff 2017-06-19 15:04:49 CEST
<http://errata.software-univention.de/ucs/4.2/50.html>