Univention Bugzilla – Bug 34333
Creating report fails
Last modified: 2014-12-08 11:46:46 CET
We received the following traceback: File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run tmp = self._function() File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line 147, in wrapper_func ret = func(*args, **kwargs) File "/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line 546, in _thread doc = udr.Document( template, header = cfg.get_header( request.flavor, request.options[ 'report' ] ), footer = cfg.get_footer( request.flavor, request.options[ 'report' ] ) ) File "/usr/lib/pymodules/python2.6/univention/directory/reports/document.py", line 51, in __init__ if self._template.endswith( '.tex' ): AttributeError: 'NoneType' object has no attribute 'endswith' I could only reproduce this by manipulating a request by hand which has either no flavor or an invalid report format. umc-command udm/reports/create -f foo/bar -e -o '{"objects":["uid=Administrator,cn=users,dc=ucs,dc=school"],"report":"Foo Report (deosnt exists)"}' I would say that this is a JavaScript error (a form was sent without all information). The feedback mail contained this remark: """beobachtetes Ergebnis: dieser Fehler, und dannach muss man im Browser auf zurück klicken, sonst kommt man nicht mehr weiter."""
Oh, and there is also the following information: "Ich wollte eine Liste mit allen Usern über den Report erstellen. Dazu habe ich die User ausgewählt und den Report aufgerufen. Dann den Standard Report und dann kam dieser Fehler. "
univention-management-console-module-udm (4.0.99-2) * Bug #34333: failures on report creation can not block UMC usage anymore YAML: 2014-08-26-univention-management-console-module-udm.yaml The backend checks now for valid report formats. If the frontend enters invalid values the form is marked with a red exclamation mark. The standby animation will end on errors so that the user is able to continue using UMC nevertheless.
Works fine. Not ported to UCS 4 yet.
merged r53045 r53049 to UCS4.
OK
http://errata.univention.de/ucs/3.2/187.html