Skip to content

Channel dispatcher error when response body has CRLF #6547

Closed

Description

@liuchangyan

Describe the bug
In Channel, the response body is ending up as a HTTP header "knativeerrordata", but if this response body contains CRLF and the statusCode is 404, this request forward to DLS fail, because CRLF is NOT allowed as HTTP header.

Expected behavior
The event that was sent to the sink is not processed further

To Reproduce
To construct a response that has a body contains CRLF like :
"<!doctype html>\n<html>\n<head>\n <title>Error Page(tm)</title>\n</head>\n<body>\n<p>Quoth the server, 404!\n</body></html>"
And you will see there is no attempt at sending it to a deadLetterSink when this error occured

Knative release version
Latest

Activity

  1. added
    kind/bug
    on Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/channelsarea/deliverykind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions