Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F56012926: D2995.id.diff
Mon, Nov 2, 03:14
F55942113: D2995.diff
Sun, Nov 1, 16:17
F55902630: D2995.id7650.diff
Sun, Nov 1, 10:05
Unknown Object (File)
Sat, Oct 31, 00:19
Unknown Object (File)
Fri, Oct 30, 14:17
Unknown Object (File)
Thu, Oct 29, 13:18
Unknown Object (File)
Thu, Oct 29, 13:18
Unknown Object (File)
Thu, Oct 29, 13:18
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