Page MenuHomePhabricator

[keyserver] Validate search endpoint response
ClosedPublic

Authored by inka on Jun 7 2023, 6:33 AM.
Tags
None
Referenced Files
F6184565: D8143.id.diff
Wed, Apr 23, 10:29 AM
F6171052: D8143.id27646.diff
Wed, Apr 23, 2:10 AM
F6165330: D8143.id27651.diff
Tue, Apr 22, 10:53 PM
F6163055: D8143.id27523.diff
Tue, Apr 22, 7:54 PM
F6155907: D8143.diff
Tue, Apr 22, 4:43 PM
Unknown Object (File)
Wed, Apr 16, 5:10 PM
Unknown Object (File)
Sat, Apr 12, 6:00 PM
Unknown Object (File)
Sun, Apr 6, 11:35 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-3939/validate-search-endpoint
Search endpoint was missing a validation on the response

Test Plan

Called the search endpoint from client, checked that no errors / warnings appear

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Jun 7 2023, 6:50 AM

The output validation looks good but you also need to modify the input logic.

keyserver/src/responders/message-responders.js
496–499 ↗(On Diff #27523)
This revision is now accepted and ready to land.Jun 12 2023, 2:35 AM

(Restarted failing iOS build)