Bug 43671

Summary: UDM hooks for computers are needed to adjust the links in portal.json
Product: UCS Reporter: Dirk Wiesenthal <wiesenthal>
Component: PortalAssignee: Erik Damrose <damrose>
Status: CLOSED FIXED QA Contact: Dirk Wiesenthal <wiesenthal>
Severity: normal    
Priority: P5 CC: best, damrose, daniel.spilker, gohmann, klaeser
Version: UCS 4.2   
Target Milestone: UCS 4.2-0-errata   
Hardware: Other   
OS: Linux   
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:
Bug Depends on: 42175    
Bug Blocks: 44513, 44952    

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>