Skip to content

Commit

Permalink
chore: applying 1.17.2 hotfixes to main branch (#4163)
Browse files Browse the repository at this point in the history
Co-authored-by: Rohith BCS <rohith.bcs@gmail.com>
Co-authored-by: devops-github-rudderstack <88187154+devops-github-rudderstack@users.noreply.github.com>
  • Loading branch information
3 people committed Nov 21, 2023
1 parent f9f8782 commit 7b118b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [1.17.2](https://github.com/rudderlabs/rudder-server/compare/v1.17.1...v1.17.2) (2023-11-20)


### Bug Fixes

* gateway responds with http status 500 and body pq: invalid byte sequence for encoding UTF8: 0x00 ([#4161](https://github.com/rudderlabs/rudder-server/issues/4161)) ([2c168ef](https://github.com/rudderlabs/rudder-server/commit/2c168ef96308443206ec93e3527f401de1431eb4))

## [1.17.1](https://github.com/rudderlabs/rudder-server/compare/v1.17.0...v1.17.1) (2023-11-17)


Expand Down
4 changes: 2 additions & 2 deletions gateway/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ func (gw *Handle) getJobDataFromRequest(req *webRequestT) (jobData *jobFromReq,
return
}

anonIDFromReq := strings.TrimSpace(misc.GetStringifiedData(toSet["anonymousId"]))
userIDFromReq := strings.TrimSpace(misc.GetStringifiedData(toSet["userId"]))
anonIDFromReq := strings.TrimSpace(misc.SanitizeUnicode(misc.GetStringifiedData(toSet["anonymousId"])))
userIDFromReq := strings.TrimSpace(misc.SanitizeUnicode(misc.GetStringifiedData(toSet["userId"])))
eventTypeFromReq, _ := misc.MapLookup(
toSet,
"type",
Expand Down

0 comments on commit 7b118b9

Please sign in to comment.