Page MenuHomePhabricator

[lib][keyserver] Use blobURI based on client version
ClosedPublic

Authored by bartek on Jun 29 2023, 6:43 AM.
Tags
None
Referenced Files
F3404592: D8374.id28521.diff
Tue, Dec 3, 11:53 AM
F3404337: D8374.id28259.diff
Tue, Dec 3, 8:25 AM
F3404324: D8374.id28529.diff
Tue, Dec 3, 8:15 AM
F3402473: D8374.id28579.diff
Mon, Dec 2, 4:49 PM
F3402458: D8374.id28262.diff
Mon, Dec 2, 4:45 PM
F3401934: D8374.diff
Mon, Dec 2, 2:36 PM
Unknown Object (File)
Sat, Nov 23, 12:45 PM
Unknown Object (File)
Sat, Nov 23, 7:10 AM
Subscribers

Details

Summary

The last part of ENG-3966. Details are described in the comments (regarding pt. 4)

This diff introduces a utility function, that constructs a multimedia message based on client version.

Depends on D8373

Test Plan

CI should finally pass here.

Tested as follows:

  • Enabled blob service uploads on both web and native
  • Added some console logs to encryptedMediaBlobURI() to display if there's a holder or blobURI.
  • On keyserver side, there should always be blobURI.
  • The same on web (dev console)
  • On native, there should be old format (holder) when minCodeVersion is set to something not yet released (FUTURE_CODE_VERSION) and use blobURI otherwise.

Also tested the following:

  • Uploading and displaying encrypted media on Web (both video and images)
  • Uploading and displaying encrypted media on Native (both video and images)
  • Displaying thread media gallery media on both web and native

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek edited the test plan for this revision. (Show Details)
bartek published this revision for review.Jun 29 2023, 8:15 AM
bartek added inline comments.
keyserver/src/fetchers/upload-fetchers.js
142 ↗(On Diff #28262)

From now on, the final message format is translated based on client version, so we can use the new fields in keyserver utilites

lib/media/media-utils.js
143–147 ↗(On Diff #28262)

Accidentally committed these (part of the test plan), will remove before landing.

This revision is now accepted and ready to land.Jul 2 2023, 3:05 PM