Invalid target header name error no longer indicates which line was rejected #247
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?
Surfaced during review of #242. Not milestoned for 1.0; filed so the finding is recorded rather than lost in a review thread.
errHeaderNameInvalidnow quotes nothing at all. That is a direct and correct consequence of #233, which required the error not to echo a possible secret — so this is a trade-off that landed, not a defect in that work.The cost is operator UX: someone submitting a multi-line headers field gets no indication of WHICH line was rejected, and must bisect by hand.
Definition of done:
clawbot referenced this issue2026-08-20 11:07:50 +02:00
Dismissed by execution during the deployability audit. The line number is present on both paths.
Multi-line header config with a bad line 3 returns exactly
Invalid headers: line 3: header name must be a valid HTTP token, on create and on edit. Duplicate and reserved-header errors carry it too:Invalid headers: line 2: header given more than once: "X-Dup"andInvalid headers: line 2: header is set by the delivery engine and cannot be overridden: "Host".Closing.