Page MenuHomePhabricator

[lib] Discard keyserver usernames for keyserverAuthActionTypes
ClosedPublic

Authored by inka on Thu, Jun 20, 4:16 AM.
Tags
None
Referenced Files
F2129401: D12509.id41598.diff
Thu, Jun 27, 1:05 PM
F2127855: D12509.id41552.diff
Thu, Jun 27, 9:15 AM
F2124430: D12509.id41551.diff
Wed, Jun 26, 8:57 PM
Unknown Object (File)
Tue, Jun 25, 1:39 PM
Unknown Object (File)
Tue, Jun 25, 12:33 PM
Unknown Object (File)
Mon, Jun 24, 10:57 PM
Unknown Object (File)
Mon, Jun 24, 2:39 PM
Unknown Object (File)
Sun, Jun 23, 6:44 PM
Subscribers

Details

Summary

issue: ENG-8365
update_relationships throws for viewers own id, because it doesn't make sense to be updating users relationship with themselves. But the user should always have their own user info sent during keyserver auth, so there is no need to fetch it, for any action

Test Plan

Logged in. Checked that usernames for both the current user and other users are null after keyserver auth and get fetched from identity. Checked that the invalid_user error doesn't show up.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Thu, Jun 20, 4:32 AM
lib/handlers/user-infos-handler.react.js
71–73 ↗(On Diff #41550)

I should check again if userIDsWithoutOwnID is not empty

This revision is now accepted and ready to land.Fri, Jun 21, 3:24 AM