Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F29997731: D2995.id7648.diff
Wed, May 20, 17:52
Unknown Object (File)
Mon, May 18, 20:45
Unknown Object (File)
Mon, May 18, 13:14
Unknown Object (File)
Mon, May 18, 05:15
Unknown Object (File)
Mon, May 18, 05:14
Unknown Object (File)
Mon, May 18, 05:14
Unknown Object (File)
Sat, May 16, 13:10
Unknown Object (File)
Thu, May 14, 22:12
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