Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F27732777: D2995.diff
Thu, May 7, 13:35
F27717079: D2995.diff
Thu, May 7, 08:25
Unknown Object (File)
Wed, May 6, 10:55
Unknown Object (File)
Tue, May 5, 21:46
Unknown Object (File)
Tue, May 5, 12:13
Unknown Object (File)
Sun, May 3, 17:34
Unknown Object (File)
Mon, Apr 27, 13:04
Unknown Object (File)
Sat, Apr 25, 15:21
Subscribers
None

Details

Summary

Rocket allows in debug to read request body as a string,
but not in production. Switching to RequestBody implementation
provided by Limiting Factor for such cases.

This change fixes the following issue:

error[E0277]: the trait bound `std::string::String: FromDataSimple`
is not satisfied

Fixes T1827.

Test Plan

Fire HTTP requests to deploy/init/update

Diff Detail

Repository
rALK Alkane
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
main
Build Status
Buildable 4734
Build 5015: arc lint + arc unit