Univention Bugzilla – Bug 37227
Creating report fails
Last modified: 2018-10-09 17:32:39 CEST
Seems to still occur in UCS 4.0. Remark: Habe versucht einen Report über die angelegten Benutzer zu erstellen. Version: 4.0-0 errata10 (Walle) Traceback: File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run tmp = self._function() File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 184, in wrapper_func ret = func( *args, **kwargs ) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/__init__.py", line 584, 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.7/univention/directory/reports/document.py", line 51, in __init__ if self._template.endswith( '.tex' ): AttributeError: 'NoneType' object has no attribute 'endswith' +++ This bug was initially created as a clone of Bug #34333 +++ 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."""
I could reproduce this: The UCR template /etc/univention/directory/reports/config.ini may consists of * old entries with 3 columns instead of 4 * pathes which doesn't exist If this is the case the traceback will occur. As fix we could show in that case an error message which tells the user that the UCR template /etc/univention/directory/reports/config.ini have to be checked. (Plus: Instead of replacing the legacy directory-path by an empty string we could use the default directory /etc/univention/directory/reports/default.)
Reported again, 3.2-3 errata221 (Borgfeld) Remark: Erstellen eines csv-Reports der Rechnerobjekte schlägt fehl.
Reported again, 4.0-1 errata152 (Walle)
Reported again, 4.0-2 errata194 (Walle) Remark: Erstellen von AD Report als CSV → What is a AD report?
Reported again, 4.0-2 errata205 (Walle) Die Ausführung des Kommandos udm/reports/create users/user ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 207, in _decorated return function(self, request, *args, **kwargs) File "%PY2.7%/notifier/threads.py", line 82, in _run tmp = self._function() File "%PY2.7%/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 163, in _decorated return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 146, in wrapper_func return _func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 139, in _func ret = func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 601, 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 "%PY2.7%/univention/directory/reports/document.py", line 51, in __init__ if self._template.endswith( '.tex' ): AttributeError: 'NoneType' object has no attribute 'endswith'
(In reply to Florian Best from comment #5) > Reported again, 4.0-2 errata205 (Walle) Was this reported today? It might have been one of the training systems we used today in munich. We had this exact traceback on 2 out of 6 newly installed systems (installed with the UCS 4.0-2 DVD). Maybe I can track this down tomorrow, but won't have that much time. Any suggestions?
(In reply to Michael Grandjean from comment #6) > (In reply to Florian Best from comment #5) > > Reported again, 4.0-2 errata205 (Walle) > > Was this reported today? It might have been one of the training systems we > used today in munich. We had this exact traceback on 2 out of 6 newly > installed systems (installed with the UCS 4.0-2 DVD). > Maybe I can track this down tomorrow, but won't have that much time. Any > suggestions? Please attach /etc/univention/directory/reports/config.ini and check if the pathes which are referenced there exists.
Created attachment 6935 [details] directory reports config.ini This is the config.ini I will also attach a directory listing. Strangely enough, I was able to create a report using the command line tool: > root@ucs-4169:~# univention-directory-reports -m users/user uid=Administrator,cn=users,$(ucr get ldap/base) -u uid=Administrator,cn=users,$(ucr get ldap/base) -p univention > created PDF file: /tmp/univention-directory-reports-naGR31.pdf > root@ucs-4169:~# But using the UMC still failed with the above traceback.
Created attachment 6936 [details] directory listing reports/default/...
Reported again, 4.0-2 errata205 (Walle) Reported again, 4.0-1 errata193 (Walle) Remark: Occurs when creating a CSV report of DC Master.
Reported again, 4.1-0 errata59 (Vahr)
Reported again, Version: 4.1-2 errata220 (Vahr) Remark: Guten Tag Wollte einen Report der Gruppen estellen. Geht aber nicht.
Reported again, 4.1-1 errata140 (Vahr)
Reported again, 4.1-4 errata366 (Vahr)
Reported again, 4.1-4 errata430 (Vahr) Remark: Can't log in my owncloud account. Even after resetting the password numerous times.
Reported again, 4.1-4 errata429 (Vahr)
Reported again, 4.1-4 errata371 (Vahr)
UDM uses a new report generator since <http://errata.software-univention.de/ucs/4.2/76.html> and UCS-4.1 is out-of-maintenance.