Page MenuHomePhabricator

Files larger than 1MiB not downloaded and relayed to IRC
Open, LowPublicBUG REPORT

Description

Screenshot 2024-04-30 at 00.10.31.png (237×441 px, 23 KB)

[00:05:36] <wm-bb> <tehreedy> >Welcome to Hilton Tallinn Park!
[00:05:37] <wm-bb> <tehreedy> I'm not there yet!!!
[00:05:41] <wm-bb> <tehreedy> https://tools-static.wmflabs.org/bridgebot/8add226c/Hotel_Guide.pdf

Event Timeline

bd808 subscribed.
[23:13]  <    wm-bb> <lucaswerkmeister> strange, I can’t find an existing upstream issue for it
[23:13]  <    wm-bb> <lucaswerkmeister> (I would assume it affects matterbridge in general)
[23:13]  <    wm-bb> <lucaswerkmeister> (but what do I know… *something* about tools-static in there is clearly custom ;))
[23:14]  <    Reedy> THOU SHALT MUST ONLY ONE UPLOAD AT A TIME
[23:15]  <    wm-bb> <lucaswerkmeister> “patience, my young padawan.”

The custom tools-static bit is just this bit of config for MediaDownloadPath and MediaServerDownload.

I can’t find an upstream bug report about this, and it’s not immediately obvious why it shouldn’t work – Telegram’s handleUploadFile and IRC handleFiles both seem to loop over a potential list of files 🤷

time="2024-04-29T23:05:40Z" level=debug msg="Trying to download "Welcome.pdf" with size 5679824" func=HandleDownloadSize file="bridgebot-matterbridge@v0.0.0-20240424042617-38c64944bf1d/bridge/helper/helper.go:162" prefix=telegram

time="2024-04-29T23:05:40Z" level=error msg="download failed: File "Welcome.pdf" to large to download (5679824). MediaDownloadSize is 1000000" func=handleRecv file="bridgebot-matterbridge@v0.0.0-20240424042617-38c64944bf1d/bridge/telegram/h
andlers.go:242" prefix=telegram

time="2024-04-29T23:05:40Z" level=debug msg="Trying to download "Hotel Guide.pdf" with size 132785" func=HandleDownloadSize file="bridgebot-matterbridge@v0.0.0-20240424042617-38c64944bf1d/bridge/helper/helper.go:162" prefix=telegram

time="2024-04-29T23:05:41Z" level=debug msg="Download OK "Hotel Guide.pdf" 132785" func=HandleDownloadData2 file="bridgebot-matterbridge@v0.0.0-20240424042617-38c64944bf1d/bridge/helper/helper.go:183" prefix=telegram

The Welcome.pdf file was bigger than the default media download size of 1M. We could raise the limit, but I have up to know mostly assumed that media sharing is mostly needed for screen shots.

bd808 renamed this task from Bot seemingly only links 1 file if > 1 uploaded in the same message to Files larger than 1MiB not downloaded and relayed to IRC.Mon, Apr 29, 11:39 PM
bd808 removed a project: Upstream.
bd808 changed the subtype of this task from "Task" to "Bug Report".