Page MenuHomePhabricator

[lib] Shim Blob service hosted multimedia
ClosedPublic

Authored by bartek on Apr 25 2023, 10:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 3, 10:17 PM
Unknown Object (File)
Wed, Apr 3, 10:17 PM
Unknown Object (File)
Wed, Apr 3, 10:17 PM
Unknown Object (File)
Wed, Apr 3, 10:17 PM
Unknown Object (File)
Wed, Apr 3, 10:17 PM
Unknown Object (File)
Wed, Apr 3, 10:15 PM
Unknown Object (File)
Wed, Apr 3, 10:05 PM
Unknown Object (File)
Mar 4 2024, 2:31 AM
Subscribers

Details

Summary

Resolves ENG-3728. Old clients which do not support Blob service URIs should display a shim message. Otherwise, these media wouldn't be able to load.

Depends on D7615

Test Plan
  1. Artifically replaced each URI parameter in keyserver upload-fetchers with fake Blob service URIs
  2. Log out and back in on native
  3. Verify that shim message is displayed

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Apr 25 2023, 11:35 AM
ashoat requested changes to this revision.Apr 25 2023, 12:41 PM

Mainly concerned about codeVersion check

lib/media/media-utils.js
42–43 ↗(On Diff #25690)

Why do we have to check both uri and holder?

lib/shared/messages/multimedia-message-spec.js
230 ↗(On Diff #25690)

Is this the right codeVersion? I believe this version has already launched, and I don't think it supports querying https://blob.commtechnologies.org...

Can we set this to some large number? Could be a good time to address ENG-2019 (should take a second)

This revision now requires changes to proceed.Apr 25 2023, 12:41 PM
bartek added inline comments.
lib/media/media-utils.js
42–43 ↗(On Diff #25690)

Ah, I forgot to mention here. It's the same case as I described in https://phab.comm.dev/D7617#inline-49702

We're not going to set non-encrypted media uri to be a blob service holder, but support for this and additional checks won't hurt

lib/shared/messages/multimedia-message-spec.js
230 ↗(On Diff #25690)

Yeah I got too late with this, 214 already on TestFlight today

That constant is a great idea, will do!

Introduced a FUTURE_CODE_VERSION constant and replaced shimmed code version with it.

This revision is now accepted and ready to land.Apr 26 2023, 6:35 AM
This revision was automatically updated to reflect the committed changes.