matrix-spec-proposals icon indicating copy to clipboard operation
matrix-spec-proposals copied to clipboard

MSC2398: proposal to allow mxc:// in the "a" tag within messages

Open eras opened this issue 5 years ago • 14 comments

Currently message events (m.room.message) can contain formatted data in its formatted_body field, if the format of the message is org.matrix.custom.html. This is a proposal to allow the mxc:// schema to appear also for a tags in addition to just img tags currently permitted (in fact, required).

Rendered: https://github.com/eras/matrix-doc/blob/MSC2398-mxc-for-a-tags/proposals/2398-allow-mxc-within-message-links.md


SCT:

Implementation: Not required. Feature appears to be self-contained enough to make sense as-is. ~TravisR

~~FCP tickyboxes~~

eras avatar Jan 02 '20 20:01 eras

@eras also slightly annoying, but the proposal needs to be signed off so we can merge it: https://github.com/matrix-org/matrix-doc/blob/master/CONTRIBUTING.rst#sign-off

turt2live avatar Jan 02 '20 21:01 turt2live

Updated.

Changes:

  • Added note about alternatives per @KitsuneRal 's comment
  • Removed changes to instant_messaging.rst per @turt2live 's comment
  • Added a Signed Off -line to the commit message per @turt2live 's comment

eras avatar Jan 03 '20 06:01 eras

So it came to me that an implementation should be careful when implementing this.

In particular, when a web-based client opens a HTML document from the same domain as the Matrix API, the document can probably use JavaScript to make requests with the user's credentials.

eras avatar Feb 13 '22 12:02 eras

@eras i believe those thoughts would be best served under the "Security Considerations" header in the proposal :+1:

ShadowJonathan avatar Feb 13 '22 13:02 ShadowJonathan

sorry this got stuck :(

@mscbot fcp merge

turt2live avatar Nov 14 '23 04:11 turt2live

Team member @mscbot has proposed to merge this. The next step is review by the rest of the tagged people:

  • [ ] @dbkr
  • [x] @uhoreg
  • [x] @turt2live
  • [x] @ara4n
  • [x] @anoadragon453
  • [x] @richvdh
  • [ ] @erikjohnston
  • [x] @KitsuneRal

Concerns:

  • ~~add explicit text about transforming mxc link to https~~
  • How do you implement this on web clients with MSC3916

Once at least 75% of reviewers approve (and there are no outstanding concerns), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for information about what commands tagged team members can give me.

mscbot avatar Nov 14 '23 04:11 mscbot

@mscbot concern add explicit text about transforming mxc link to https

dbkr avatar Nov 28 '23 11:11 dbkr

@mscbot resolve add explicit text about transforming mxc link to https

dbkr avatar Jan 09 '24 15:01 dbkr

:bell: This is now entering its final comment period, as per the review above. :bell:

mscbot avatar Jan 12 '24 19:01 mscbot

@mscbot concern How do you implement this on web clients with MSC3916

Sorry, but sounds like we need to double check the above before we can land this. Hopefully someone can just confirm its possible. c.f. https://github.com/matrix-org/matrix-spec-proposals/pull/2398#discussion_r1450863444

erikjohnston avatar Jan 15 '24 12:01 erikjohnston

The final comment period, with a disposition to merge, as per the review above, is now complete.

mscbot avatar Jan 17 '24 19:01 mscbot

(FCP is not complete because there are outstanding concerns - see https://github.com/matrix-org/mscbot-python/issues/3 )

turt2live avatar Jan 18 '24 15:01 turt2live

The outstanding concern on this does not appear easily resolved - I'm cancelling FCP or returning this MSC back to its pre-FCP state (whichever the bot lets me do) pending further work in the area of media linking. It feels like changes may be required that would warrant a new FCP call anyways.

@mscbot fcp cancel

turt2live avatar Mar 26 '24 02:03 turt2live

This proposal is not in FCP nor has had FCP proposed.

mscbot avatar Mar 26 '24 02:03 mscbot