Univention Bugzilla – Bug 50756
univention-run-diagnostic-checks does not show links
Last modified: 2022-03-09 13:43:43 CET
Created attachment 10287 [details] output of same check in the UMC Running univention-run-diagnostic-checks from the command line will result in links (e.g. to additional information) not being output even if the same links are shown in the UMC. Example: ##################### Start 58_check_memberOf ###################### ## Check failed: 58_check_memberOf - Prüfe LDAP-Attribut memberOf ## Das Attribut für Gruppenmitgliedschaften "memberOf" ist auf dem LDAP-Server auf diesem Host nicht verfügbar. Diese Funktion wird bei Neuinstallationen seit UCS Version 4.3-0 standardmäßig aktiviert, und verschiedene Dienste hängen davon ab. Dieses Attribut wird in zukünftigen UCS-Versionen vorausgesetzt. Sie können die memberOf-Funktion für den LDAP-Server folgendermaßen aktivieren: ###################### End 58_check_memberOf #######################
@Max, could you implement a fix for this. The UMC javascript module does the following logic for inserting links: 131 » » » array.forEach(item.links, lang.hitch(this, function(link) { 132 » » » » var a = domConstruct.create('div'); 133 » » » » a.appendChild(domConstruct.create('a', {href: link.href, innerHTML: link.label || link.href, target: '_blank', rel: 'noopener noreferrer'})); 134 » » » » a = new Text({innerHTML: a.innerHTML}); 135 » » » » this.own(a); 136 » » » » var repl = '{' + link.name + '}'; 137 » » » » if (description.indexOf(repl) !== -1) { 138 » » » » » description = description.replace(repl, a.innerHTML); 139 » » » » } else { 140 » » » » » div.addChild(a); 141 » » » » } 142 » » » })); We should do something similar in the univention-run-diagnostic-checks CLI tool and print the link target and the label of the link.
implemented replace function for link placeholders in the cli for error messages. univention-management-console-module-diagnostic (6.0.0-25) 339f192a0f77 | Bug #50756: display links of failed diagnostic plugins also in univention-run-diagnostic-checks
Great work! OK: links inline in the text (enhancement would have been to put the labels into quotes) OK: links appended to the text OK: YAML
<https://errata.software-univention.de/#/?erratum=5.0x238>