Bug 52690 - SAML: KeyError
SAML: KeyError
Status: NEW
Product: UCS
Classification: Unclassified
Component: SAML
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-26 10:43 CET by Christian Castens
Modified: 2021-12-01 00:48 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of 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.103
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021020821000224, 2021022021000353, 2021021321000251, 2021021821000625, 2021022121000182, 2021042121000231, 2021011921000509, 2021012021000319, 2021011921000751, 2021060921000617, 2021053121000354, 2021072021000531
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2021-01-26 10:43:30 CET
Version: 5.0-0 errata0

Error:
Traceback (most recent call last):
  File "/usr/lib/python3.7/shelve.py", line 111, in __getitem__
    value = self.cache[key]
KeyError:
'1=https%3A//ucs-******.******.intranet/univention/saml/metadata,2=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Anameid-format%3Atransient,4=_9a99caa2a0676fccfe6a579f6dc668a1a2768f8b04&#x
27;

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "%PY3%/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "%PY3%/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/sbin/univention-management-console-web-server", line 1291, in logout
    data = self.sp.global_logout(user.saml.name_id)
  File "%PY3%/saml2/client.py", line 161, in global_logout
    entity_ids = self.users.issuers_of_info(name_id)
  File "%PY3%/saml2/population.py", line 44, in issuers_of_info
    return self.cache.entities(name_id)
  File "%PY3%/saml2/cache.py", line 155, in entities
    return list(self._db[cni].keys())
  File "/usr/lib/python3.7/shelve.py", line 113, in __getitem__
    f = BytesIO(self.dict[key.encode(self.keyencoding)])
KeyError:
b'1=https%3A//ucs-******.******.intranet/univention/saml/metadata,2=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Anameid-format%3Atransient,4=_9a99caa2a0676fccfe6a579f6dc668a1a2768f8b04&#
x27;


Role: domaincontroller_master
Comment 3 Christian Castens univentionstaff 2021-06-21 15:13:07 CEST
reported again: #2021060921000617
Version: 5.0-0 errata3

Error:
Traceback (most recent call last):
  File "/usr/lib/python3.7/shelve.py", line 111, in __getitem__
    value = self.cache[key]
KeyError:
'1=https%3A//ucs-*******/univention/saml/metadata,2=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Anameid-format%3Atransient,4=_bf33c4fcaef4c4c0534fa4e2e2afe2b1c93fd6985f'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "%PY3%/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "%PY3%/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "%PY3%/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/sbin/univention-management-console-web-server", line 1310, in logout
    data = self.sp.global_logout(user.saml.name_id)
  File "%PY3%/saml2/client.py", line 161, in global_logout
    entity_ids = self.users.issuers_of_info(name_id)
  File "%PY3%/saml2/population.py", line 44, in issuers_of_info
    return self.cache.entities(name_id)
  File "%PY3%/saml2/cache.py", line 155, in entities
    return list(self._db[cni].keys())
  File "/usr/lib/python3.7/shelve.py", line 113, in __getitem__
    f = BytesIO(self.dict[key.encode(self.keyencoding)])
KeyError:
b'1=https%3A//ucs-*******/univention/saml/metadata,2=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Anameid-format%3Atransient,4=_bf33c4fcaef4c4c0534fa4e2e2afe2b1c93fd6985f'


Role: domaincontroller_master
Comment 4 Christian Castens univentionstaff 2021-06-23 11:36:13 CEST
Version: 4.4-8 errata958 (Blumenthal)

Error:
Traceback (most recent call last):
  File "%PY2.7%/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "%PY2.7%/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "%PY2.7%/cherrypy/_cpdispatch.py", line 61, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/sbin/univention-management-console-web-server", line 1279, in logout
    data = self.sp.global_logout(user.saml.name_id)
  File "%PY2.7%/saml2/client.py", line 160, in global_logout
    entity_ids = self.users.issuers_of_info(name_id)
  File "%PY2.7%/saml2/population.py", line 43, in issuers_of_info
    return self.cache.entities(name_id)
  File "%PY2.7%/saml2/cache.py", line 151, in entities
    return list(self._db[cni].keys())
  File "/usr/lib/python2.7/shelve.py", line 121, in __getitem__
    f = StringIO(self.dict[key])
  File "/usr/lib/python2.7/bsddb/__init__.py", line 270, in __getitem__
    return _DeadlockWrap(lambda: self.db[key])  # self.db[key]
  File "/usr/lib/python2.7/bsddb/dbutils.py", line 68, in DeadlockWrap
    return function(*_args, **_kwargs)
  File "/usr/lib/python2.7/bsddb/__init__.py", line 270, in <lambda>
    return _DeadlockWrap(lambda: self.db[key])  # self.db[key]
KeyError:
'1=https%3A//********.com/univention/saml/metadata,2=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Anameid-format%3Atransient,4=_e7d7885a9b1cd7d0179e1904f823c987e9575fd180'


Role: domaincontroller_master
Comment 5 Maximilian Janßen univentionstaff 2021-11-26 11:29:39 CET
reported again:
(similar to Comment #1 )

Version: 4.4-7 errata910 (Blumenthal)

Error: 
Traceback (most recent call last):
  File "%PY2.7%/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "%PY2.7%/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "%PY2.7%/cherrypy/_cpdispatch.py", line 61, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/sbin/univention-management-console-web-server", line 777, in default
    @cherrypy.expose
  File "/usr/sbin/univention-management-console-web-server", line 817, in get_response
    except UMC_HTTPError:
  File "/usr/sbin/univention-management-console-web-server", line 836, in make_queue_request
  File "/usr/sbin/univention-management-console-web-server", line 390, in reset_timeout
    self.disconnect_timer()
  File "/usr/sbin/univention-management-console-web-server", line 395, in disconnect_timer
    try:
  File "%PY2.7%/notifier/nf_generic.py", line 175, in timer_remove
    del __timers[id]
KeyError: 2047


Role: domaincontroller_master