Bug 56171 - saml2: KeyError at del self._db[code(name_id)]
saml2: KeyError at del self._db[code(name_id)]
Status: NEW
Product: UCS
Classification: Unclassified
Component: SAML
UCS 5.0
Other Windows NT
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-06-20 13:17 CEST by Maximilian Janßen
Modified: 2023-06-20 13:17 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023052121000477
Bug group (optional): 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 Maximilian Janßen univentionstaff 2023-06-20 13:17:42 CEST
Version: 5.0-3 errata668

Error:
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 1323, in slo
    self.sp.handle_logout_response(response)
  File "%PY3%/saml2/client.py", line 311, in handle_logout_response
    self.local_logout(decode(status["name_id"]))
  File "%PY3%/saml2/client.py", line 285, in local_logout
    self.users.remove_person(name_id)
  File "%PY3%/saml2/population.py", line 57, in remove_person
    self.cache.delete(name_id)
  File "%PY3%/saml2/cache.py", line 38, in delete
    del self._db[code(name_id)]
KeyError:
'1=https%3A//***.***/univention/saml/metadata,2=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Anameid-format%3Atransient,4=***'

Role: domaincontroller_master



>>> urllib.parse.unquote("https%3A//***.***/univention/saml/metadata,2=urn%3Aoasis%3Anames%3Atc%3ASAML%3A2.0%3Anameid-format%3Atransient,4=***&#x27")
'https://***.***/univention/saml/metadata,2=urn:oasis:names:tc:SAML:2.0:nameid-format:transient,4=***&#x27'