Univention Bugzilla – Bug 38974
Traceback in sources.list files should be recognized
Last modified: 2017-09-20 15:03:43 CEST
A traceback in one of the sources.list files should be recognized by the diagnostic module. See Ticket #2015071421000546
*** Bug 38988 has been marked as a duplicate of this bug. ***
From Bug #38988: > The diagnostic module should also check for other Tracebacks like > - wrong credentials for repositories Please note that "incorrect" credentials are currently default in several scenarios. The some apps automatically configure external 3rd party repositories to include security updates. These repos are only available for paying customers, all other users get a permission denied. I think, it would be an incorrect signal to the user to display these tracebacks as a problem via the diagnostic module.
Created attachment 8919 [details] 38974-diagnostic-traceback-sources-list-420.patch Find exception tracebacks in all files in `/etc/sources.list.d/*` and display them as a Warning. `ConfigurationErrors` are not reported with a full traceback and are therefore not covered by this check. This seems to be intended behaviour to me. Note that this covers the case in comment 2.
Created attachment 8920 [details] 38974-diagnostic-traceback-sources-list-420.patch Updated the regex to be more permissive (thanks Florian).
Committed in r81620 - r81621 (advisory r81649).
* typo in german translation "Dateine" * full sentences would be better
r81707: fix typo in translation of sources_list_check The "All files ok" is just pro forma. This is in the current implementation of the diagnostic module never shown, as the overview just displays error messages. In case of an error the `description` is replaced with the actual error message.
I found the following error in the sources.list by adding a new component (via the repository module): # Configuration error: host is unresolvable: foobar It was not detected.
(In reply to Florian Best from comment #8) > I found the following error in the sources.list by adding a new component > (via the repository module): > > # Configuration error: host is unresolvable: foobar > > It was not detected. Comment 3: > `ConfigurationErrors` are not reported with a full traceback and are therefore > not covered by this check. This seems to be intended behaviour to me. Note that > this covers the case in comment 2.
Please add a solution button "Regenerate sources list" / "Source-Listen neu generieren" /etc.
(In reply to Florian Best from comment #10) > Please add a solution button "Regenerate sources list" / "Source-Listen neu > generieren" /etc. Implemented in r81988.
Please adjust the german translation: +"Dieser Fehler mag durch eine erneute Generierung der Source-Listen zu " +"beheben sein." Maybe better: "Dieser Fehler könnte durch eine erneute Generierung der Source-Listen behoben werden".
Fixed: 4.2-1: r82618, YAML: r82626 4.2-2: r82627, YAML: r82635
All right.
<http://errata.software-univention.de/ucs/4.2/166.html>