openresty / openresty/lua-resty-core

b64.encode_base64url problem

Open
#424 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
853
Forks
286
Avg merge
35m
Merged PRs (30d)
1

Description

local str = 'CgIAiFs24JOIbXrLAAAAPBwznGIAAAAqwQPxMwAAABU94'
res, err = b64.decode_base64url(str)
if err then
    ngx.log(ngx.ERR, err)
    -- output: invalid input
end

openresty: 1.19.9.1
resty.core: 0.1.22

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the b64.decode_base64url entry point and reproduce the reported invalid input result with the Lua snippet using openresty 1.19.9.1 and resty.core 0.1.22. Compare the behavior with the expected handling of this base64url string; done means the reported input is handled correctly or the issue is documented as invalid.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.