Univention Bugzilla – Bug 45060
Make URLs from /var/log/univention/updater.log clickable
Last modified: 2017-12-07 16:34:38 CET
The preup.sh script often print URLs, e.g. for the release notes or to sdb articels if the update is blocked. Currently the UMC module only shows the logfile as text, so those URLs need to be copied and pasted to the browser manually. It would help if the UMC updater could detect URLs itself and show them as clickable links. Noticed by UCS Technical Training 2017-07
Fixed in branch jahlers/45060-updater-links-click
Please rebase your branch, I commited a little enhancement. And make the following adjustments: 1. The links should open in a new tab. 2. Add some security mechanism by adding rel="noopener noreferrer" to the links. (https://mathiasbynens.github.io/rel-noopener/) Please adjust the description in the YAML to something like the following: Links in the log view during installing software upgrades via the UMC module can now be clicked.
Please note that the maximum line length for YAML files is 80. I adjusted this in commit 5aa2a9c.
The links aren't opened in a new tab (typo "tagret" instead of "target"). The "noreferrer" relation is missing in the link.
The URLs that appear in the updater module's logs now get matched and replaced. A very simple regex was used that only matches links beginning with 'http[s]://', so possibly not all URLs get detected. univention-updater (12.0.11-16) 574799afc795 | Bug #45060: URLs now open in a new tab univention-updater (12.0.11-15) 732c6e433b62 | Bug #45060: Merge branch 'jahlers/45060-updater-links-click2' into 4.2-3 6f1c62e6ec92 | Bug #45060: URLs printed by the log in the UMC updater module are now clickable univention-updater.yaml 1fff9da16702 | Bug #45060: YAML 5aa2a9ce1c43 | YAML Bug #44080, Bug #45060 e242fbe15c80 | Bug #45060: YAML 732c6e433b62 | Bug #45060: Merge branch 'jahlers/45060-updater-links-click2' into 4.2-3 07a3a9066f6c | Bug #45060: YAML Successful build Package: univention-updater Version: 12.0.11-16A~4.2.0.201712051543 Branch: ucs_4.2-0 Scope: errata4.2-3 User: jahlers
This works very nice now. The YAML file is OK.
<http://errata.software-univention.de/ucs/4.2/243.html>