matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.74k stars 676 forks source link

Authenticated media requests don't seem to work at all? #3420

Closed Lunaphied closed 2 months ago

Lunaphied commented 2 months ago

Background information

Description

Steps to reproduce

Sep 10 18:08:41 homura dendrite[14339]: time="2024-09-11T00:08:41.576265018Z" level=error msg="r.fetchRemoteFileAndStoreMetadata: failed to fetch remote file" MediaID=redacted Origin=matrix.org error="File with media ID \"redacted\" does not exist on matrix.org" req.id=KiQCE521bkpb req.method=GET req.path=/_matrix/media/v3/download/matrix.org/redacted

all redacteds are the same ID.

viviicat commented 2 months ago

Looking at the history, this might be because they have not made a release with that functionality yet? I believe it was added in August in #3397

Tomorrow I'm going to try with a more recent build to see if that resolves it.

viviicat commented 2 months ago

Yeah, running from a main build resolved my issue.

S7evinK commented 2 months ago

Also keep in mind that you need a client that supports authed media through the unstable feature announced in /versions, as we do not have support for Matrix v1.11 yet.

McSinyx commented 2 months ago

What clients would work then?

S7evinK commented 2 months ago

AFAIK, FluffyChat and nheko either use the unstable feature, or just try the new endpoints and use them.

Lunaphied commented 2 months ago

Looking at the history, this might be because they have not made a release with that functionality yet? I believe it was added in August in #3397

Ah looks like my quick peruse and search of the sources and PRs missed this, thank you! Manually bumping my package to use the latest sources seems to address the issue so the solution for this should be as simple as cutting a new release of dendrite

S7evinK commented 2 months ago

3431 was merged, so hopefully some/all of this was fixed, if not, feel free to re-open.