You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling JOSE.JWK.block_encrypt/3 with an invalid value for the third argument (jwk) should send back a relevant error.
Calling JOSE.JWK.from_pem/1 with an invalid key as an argument should send back an error instead of [].
Current Behavior
Calling JOSE.JWK.block_encrypt/3 with an invalid value for the third argument (jwk) hangs and never resolve.
Steps to Reproduce
Open an interactive shell in a Mix project using erlang-jose
Parse an invalid Public Key using JOSE.JWK.from_pem/1; you should get []
Use [] as the third argument when calling JOSE.JWK.block_encrypt/3
The process will hang, and you will be forced to interrupt it
Context (Environment)
After a configuration error, we got an invalid Public Key in our database, and we tried to use it to generate a JWK, then we try to use this invalid result to encrypt a token. As the function call was never resolved, our HTTP endpoint produced a timeout error.
The text was updated successfully, but these errors were encountered:
Expected Behavior
Either:
JOSE.JWK.block_encrypt/3
with an invalid value for the third argument (jwk
) should send back a relevant error.JOSE.JWK.from_pem/1
with an invalid key as an argument should send back an error instead of[]
.Current Behavior
Calling
JOSE.JWK.block_encrypt/3
with an invalid value for the third argument (jwk
) hangs and never resolve.Steps to Reproduce
erlang-jose
JOSE.JWK.from_pem/1
; you should get[]
[]
as the third argument when callingJOSE.JWK.block_encrypt/3
Context (Environment)
After a configuration error, we got an invalid Public Key in our database, and we tried to use it to generate a JWK, then we try to use this invalid result to encrypt a token. As the function call was never resolved, our HTTP endpoint produced a timeout error.
The text was updated successfully, but these errors were encountered: