Page MenuHomePhabricator

[keyserver] Start validating responders output
ClosedPublic

Authored by michal on May 4 2023, 7:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 2:47 AM
Unknown Object (File)
Oct 28 2024, 8:38 AM
Unknown Object (File)
Oct 17 2024, 1:37 AM
Unknown Object (File)
Oct 14 2024, 7:02 PM
Unknown Object (File)
Oct 14 2024, 1:59 PM
Unknown Object (File)
Oct 10 2024, 7:26 AM
Unknown Object (File)
Oct 5 2024, 10:06 PM
Unknown Object (File)
Sep 28 2024, 3:34 PM
Subscribers

Details

Summary

Use the validators and the validateOutput function introduced in the previous diff in the api responders. The id schema conversion is behind the flag for now, but the outputs are still validated.

Depends on D7711

Test Plan

Test web and ios emulator if all outputs are validated correctly and no server error is thrown.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

michal retitled this revision from [keyserver] Convert responders output to [keyserver] Start validating responders output.May 4 2023, 7:53 AM
michal edited the summary of this revision. (Show Details)
keyserver/src/responders/user-responders.js
703–711

This is done in this diff, because updateUserAvatarResponder was modified while my stack was up and I would have to reorder and modify diffs for to add it to the existing diffs. The changes are small so I thought that I will just add them here.

michal requested review of this revision.May 4 2023, 8:08 AM
This revision is now accepted and ready to land.May 5 2023, 12:36 AM