Bug 17930

Summary: univention-directory-reports gibt Traceback bei ungültigem Report-Namen
Product: UCS Reporter: Janek Walkenhorst <walkenhorst>
Component: UMC - ReportsAssignee: Philipp Hahn <hahn>
Status: CLOSED FIXED QA Contact: Alexander Kläser <klaeser>
Severity: normal    
Priority: P5 CC: gohmann, hahn
Version: UCS 2.3   
Target Milestone: UCS 2.4-2   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=34333
What kind of report is it?: --- 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):
Max CVSS v3 score:

Description Janek Walkenhorst univentionstaff 2010-03-19 13:07:21 CET
univention-directory-reports -n -m users/user -r 'Standard Report CSV'

Traceback (most recent call last):
  File "/usr/bin/univention-directory-reports", line 149, in ?
    main()
  File "/usr/bin/univention-directory-reports", line 125, in main
    doc = udr.Document( template, header = cfg.get_header(), footer = cfg.get_footer() )
  File "/usr/lib/python2.4/site-packages/univention/directory/reports/document.py", line 47, in __init__
    if self._template.endswith( '.tex' ):
AttributeError: 'NoneType' object has no attribute 'endswith'
Comment 1 Philipp Hahn univentionstaff 2011-02-15 11:22:25 CET
Fehlende header, footer, templates werden nun abgefangen und mit einer
ordentlichen Meldung beendet.

svn22578, univention-directory-reports_3.0.4-1.43.201102151114

ChangeLog:
\item In \ucsCommand{univention-directory-reports} werden nun fehlende
Header-, Footer- und Template-Dateien besser abgefangen (\ucsBug{9137}, \ucsBug{17930}).
Comment 2 Alexander Kläser univentionstaff 2011-03-07 14:38:38 CET
QA: Änderung ok, die neue Fehlermeldung sieht gut aus. IMHO könnte in das Changelog das Probleme mit nicht vorhandenen Report-Namen explizit mit aufgenommen werden, bspw.:

\item In \ucsCommand{univention-directory-reports} werden nun fehlende
Header-, Footer- und Template-Dateien sowie nicht vorhande Report-Namen besser abgefangen (\ucsBug{9137},
\ucsBug{17930}).
Comment 3 Philipp Hahn univentionstaff 2011-03-07 15:15:37 CET
Wurde so angepasst.
Comment 4 Alexander Kläser univentionstaff 2011-03-07 15:45:33 CET
QA: ok
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2011-04-04 15:46:58 CEST
UCS 2.4-2 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer
neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden:
"Clone This Bug".