[FS#3378] uhttpd randomly returns "400 Bad request"

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Sun Oct 11 03:04:37 EDT 2020


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - bolvan (bolvan) 

Attached to Project - OpenWrt/LEDE Project
Summary - uhttpd randomly returns "400 Bad request"
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - In recent trunk uhttpd (2020-08-05-212f8364-1) sometimes return http error 400 Bad request

when cl->state==CLIENT_STATE_INIT
ustream_get_read_buf  should read http request starting with method (GET,POST)
and ending with request body

sometimes it reads previous request body followed by current request (GET ...........)
it looks like

GET /cgi-bin/luci/....

then this block is passed to client_init_cb and client_parse_request
client_parse_request return CLIENT_STATE_DONE
and it triggers uh_header_error(cl, 400, "Bad Request");


If I replace uhttpd binary with the one taken from 19.07  problem disappears (had to ln one .so to make it work)

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3378

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list