forked from dapr/dapr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.13] Fix incorrect content-length being sent to HTTP published mess…
…age (dapr#7661) * Fix incorrect content-length being sent to HTTP published message PR dapr#7537 reverse revered the change which removed the content-length from being set on HTTP headers on sent messages. We still need to remove the content-length from messages from pubsub subscriptions as the pubsub may report a message with a content-length which does not actually match the size of the delivered message to the app. content-length is only removed on HTTP published messages. Change should be backported to 1.13 Signed-off-by: joshvanl <me@joshvanl.dev> * Adds grpc app subscriber to content-length tests Signed-off-by: joshvanl <me@joshvanl.dev> * Adds tests for content-length gRPC subscribed app Signed-off-by: joshvanl <me@joshvanl.dev> * framework/socket: skip if test is windows Signed-off-by: joshvanl <me@joshvanl.dev> * Fix socket runtime GOOS import Signed-off-by: joshvanl <me@joshvanl.dev> * Adds v1.13.2.md release notes Signed-off-by: joshvanl <me@joshvanl.dev> --------- Signed-off-by: joshvanl <me@joshvanl.dev>
- Loading branch information
Showing
25 changed files
with
757 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Dapr 1.13.2 | ||
|
||
This update includes bug fixes: | ||
|
||
- [Fix incorrect content-length being sent to HTTP published message](#fix-incorrect-content-length-being-sent-to-http-published-message) | ||
|
||
## Fix incorrect content-length being sent to HTTP published message | ||
|
||
### Problem | ||
|
||
Published messages to HTTP application server report a content-length error and are not processed. | ||
|
||
### Impact | ||
|
||
PubSub messages from some PubSubs cannot be processed by the application. | ||
|
||
### Root cause | ||
|
||
The content-length reported by the PubSub broker message was copied to the message sent to the application's HTTP server. | ||
This content-length may not match the final message length sent to the application's HTTP server, resulting in the mesage being rejected. | ||
|
||
### Solution | ||
|
||
Filter out the content-length header from the PubSub broker message before sending it to the application's HTTP server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.