Page MenuHomePhabricator

[keyserver] Start validating responders output
ClosedPublic

Authored by michal on May 4 2023, 7:51 AM.
Tags
None
Referenced Files
F1669226: D7712.diff
Sat, Apr 27, 8:38 AM
Unknown Object (File)
Mon, Apr 15, 1:04 AM
Unknown Object (File)
Sat, Apr 13, 1:26 AM
Unknown Object (File)
Wed, Apr 10, 11:59 PM
Unknown Object (File)
Tue, Apr 9, 12:28 AM
Unknown Object (File)
Fri, Apr 5, 4:59 AM
Unknown Object (File)
Fri, Apr 5, 4:59 AM
Unknown Object (File)
Fri, Apr 5, 4:58 AM
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