openresty / openresty/lua-nginx-module

body_filter_by_lua case some strange behaviors

Open
#2,154 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.8k
Forks
2.1k
Avg merge
6h 1m
Merged PRs (30d)
6

Description

中文讨论:https://groups.google.com/g/openresty/c/kCQM3WcLC-k/m/xPckMVBSBwAJ

by using body_filter_by_lua with ngx.arg[1] uncahange,it return strange truncated response
add chunked_transfer_encoding off ,it return duplicate response line
#file-zcurl-filterandchunkoff-out-L97 && #file-zcurl-filterandchunkoff-out-L142

i test it on latest openresty 1.21.4.1 and Tengine/2.3.2(nginx/1.17.3) , Tengine is all ok

see full conf and debug log here: https://gist.github.com/9268/a9491787efa50201fbc48d82e5de1406

if someone can provide some test case example ,i can write some cases

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 with the linked Google Groups discussion and the full configuration and debug log in the referenced Gist. Reproduce the body_filter_by_lua behavior on OpenResty 1.21.4.1, comparing unchanged ngx.arg[1] and chunked_transfer_encoding off with the reported Tengine result. Done means a focused test case captures the truncated or duplicate response behavior and its expected output is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua, nginx
Domain
backend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.