Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua runtime error if token header without spaces is provided (regression since 1.7.6) #473

Closed
konstantin-smolyakov-idt opened this issue Mar 10, 2023 · 2 comments

Comments

@konstantin-smolyakov-idt
Copy link

konstantin-smolyakov-idt commented Mar 10, 2023

Environment
  • lua-resty-openidc version: 1.7.6-3
Expected behaviour

A token validation error is returned (resulting in 401 response).

Actual behaviour

A runtime error occurs and 500 response is returned:

/usr/local/share/lua/5.1/resty/openidc.lua:1654: attempt to perform arithmetic on local 'divider' (a nil value)
Minimized example

Send a bearer token without spaces, e.g. like this

Authorization: Bearer12345
@bodewig
Copy link
Collaborator

bodewig commented Mar 10, 2023

thank you, fixed with ae3bc54

@rjbma
Copy link

rjbma commented Apr 12, 2024

Has this been released, and if not, are there any plans to release it?

I'm currently hitting this bug, but latest released version (1.7.6-3) doesn't seem to include this fix yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants