mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #350] AP resets after sending malformed POST request. #2969
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mukowman on GitHub (Jul 11, 2024).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/350
Originally assigned to: @nlimper on GitHub.
Testing out posting to save_cfg
I found if I miss some of the parameters like "alias" instead of returning a 400 error, the AP resets.
@LeftPinkie commented on GitHub (Jul 16, 2024):
What is the env and version of your AP? What is the HTTP status code that you're getting. For example:
I am using env: OpenEPaperLink_Mini_AP_v4, esp32 version: 2.60b and not able to reproduce this error.
@mukowman commented on GitHub (Jul 16, 2024):
Oh interesting, I thought for sure would be easy to replicate.
With the post below, including alias I get 200.
If I uncheck alias I get no response then, I check the AP and it has rebooted.
env: ESP_THREAD_BORDER_ROUTER
build date: 2024-06-06 12:43
esp32 version: custom
psram size: 2092431
flash size: 4194304
Should be 2.60b
@mukowman commented on GitHub (Jul 16, 2024):
@LeftPinkie commented on GitHub (Jul 16, 2024):
Hmmm... not sure where the issue is as I cannot reproduce. What are the headers you are sending? Is it possible to use
curlin the terminal?@nlimper commented on GitHub (Sep 4, 2024):
See https://github.com/OpenEPaperLink/OpenEPaperLink/blob/master/ESP32_AP-Flasher/src/web.cpp#L348-L382
At least parameters
mac,contentmode,aliasenmodecfgjsonmust be present. Their existence is assumed, and their contents are not sanitized any further. If you like, you can add some checks, but imho, it's not really beneficial.@nlimper commented on GitHub (Oct 28, 2024):
fixed in
5e9238835econtentmode,aliasandmodecfgjsonare now optional.