Bug 17930 - univention-directory-reports gibt Traceback bei ungültigem Report-Namen
univention-directory-reports gibt Traceback bei ungültigem Report-Namen
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Reports
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 2.4-2
Assigned To: Philipp Hahn
Alexander Kläser
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-19 13:07 CET by Janek Walkenhorst
Modified: 2014-12-08 11:43 CET (History)
2 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".