Bug 47149 - wrong secretary results in Stacktrace in Report
wrong secretary results in Stacktrace in Report
Status: RESOLVED DUPLICATE of bug 47922
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-06 15:01 CEST by Sven Anders
Modified: 2019-03-10 16:44 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.091
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 Sven Anders 2018-06-06 15:01:09 CEST
If you have a wrong secretary attribute (because of #31317), reports will result into a stack trace:

UCS Version: 4.2-3 errata305 (Lesum)

Interner Server-Fehler in "udm/reports/create (users/user)".
AttributeError: 'NoneType' object has no attribute 'info'
if token.attrs['name'] in base.info:
File "/usr/lib/pymodules/python2.7/univention/directory/reports/interpreter.py", line 163, in attribute
self.attribute(token, base_objects[0])
File "/usr/lib/pymodules/python2.7/univention/directory/reports/interpreter.py", line 95, in run
self.run(token, token.objects)
File "/usr/lib/pymodules/python2.7/univention/directory/reports/interpreter.py", line 80, in run
interpret.run()
File "/usr/lib/pymodules/python2.7/univention/directory/reports/document.py", line 128, in create_source
tmpfile = doc.create_source(objects)
File "/usr/lib/pymodules/python2.7/univention/directory/reports/report.py", line 69, in create
report_file = report.create(request.flavor, request.options['report'], request.options['objects'])
File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/__init__.py", line 617, in _thread
result = func(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/univention/management/console/ldap.py", line 143, in _decorated
return method(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 82, in _decorated
return self._function( *tmp, **self._kwargs )
File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__
tmp = self._function()
File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run
Traceback (most recent call last):

Request: udm/reports/create (users/user)
Interner Server-Fehler in "udm/reports/create (users/user)".
Comment 1 Florian Best univentionstaff 2019-03-10 16:44:16 CET

*** This bug has been marked as a duplicate of bug 47922 ***