openresty / openresty/lua-resty-shell

attempt to index upvalue 'shell' (a userdata value)

Open
#16 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Raku
Stars
133
Forks
19
Avg merge
2h 31m
Merged PRs (30d)
1

Description

local shell = require "resty.shell"
ngx.req.read_body()
local args = ngx.req.get_post_args()

shell.run("/bin/echo", args.name)

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 by reproducing the Lua snippet in an OpenResty environment and inspect the resty.shell API and the value returned by ngx.req.get_post_args(). Trace the shell.run call to determine the supported argument shape and confirm the corrected behavior with a request containing name.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.