Bug 54080 - office365/query: AttributeError: 'NoneType' object has no attribute 'startswith'
office365/query: AttributeError: 'NoneType' object has no attribute 'startswith'
Status: VERIFIED DUPLICATE of bug 52568
Product: UCS
Classification: Unclassified
Component: Office 365
UCS 4.4
Other other
: P5 normal (vote)
: ---
Assigned To: Erik Damrose
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-17 17:41 CET by Maximilian Janßen
Modified: 2021-11-18 21:50 CET (History)
2 users (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: 2021110821000172
Bug group (optional): Error handling
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Janßen univentionstaff 2021-11-17 17:41:11 CET
Error: 
Internal server error during "office365/query".
Request: office365/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/office365/__init__.py", line 92, in query
    'initialized': AzureAuth.is_initialized(self.adconnection_alias),
  File "%PY2.7%/univention/office365/azure_auth.py", line 392, in is_initialized
    tokens = cls.load_tokens(adconnection_alias)
  File "%PY2.7%/univention/office365/azure_auth.py", line 434, in load_tokens
    return JsonStorage(AzureADConnectionHandler.get_conf_path('TOKEN_FILE', adconnection_alias)).read()
  File "%PY2.7%/univention/office365/azure_auth.py", line 100, in get_conf_path
    conf_dir = os.path.join(ADCONNECTION_CONF_BASEPATH, adconnection_alias)
  File "/usr/lib/python2.7/posixpath.py", line 68, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
Comment 1 Erik Damrose univentionstaff 2021-11-18 18:25:20 CET

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