Skip to content
Snippets Groups Projects
Forked from Maunium / synapse
Source project has a limited visibility.
  • Erik Johnston's avatar
    43badd2c
    Fix key verification when key stored with null valid_until_ms · 43badd2c
    Erik Johnston authored
    Some keys are stored in the synapse database with a null valid_until_ms
    which caused an exception to be thrown when using that key. We fix this
    by treating nulls as zeroes, i.e. they keys will match verification
    requests with a minimum_valid_until_ms of zero (i.e. don't validate ts)
    but will not match requests with a non-zero minimum_valid_until_ms.
    
    Fixes #5391.
    43badd2c
    History
    Fix key verification when key stored with null valid_until_ms
    Erik Johnston authored
    Some keys are stored in the synapse database with a null valid_until_ms
    which caused an exception to be thrown when using that key. We fix this
    by treating nulls as zeroes, i.e. they keys will match verification
    requests with a minimum_valid_until_ms of zero (i.e. don't validate ts)
    but will not match requests with a non-zero minimum_valid_until_ms.
    
    Fixes #5391.