Page MenuHomePhabricator

Cannot download media (Uncaught TypeError: Cannot read property 'getMIMEType' of undefined / TypeError: this is undefined)
Closed, ResolvedPublic

Description

Replication steps:

Screen Shot 2020-09-10 at 4.08.15 PM.png (924×2 px, 463 KB)

Note on Firefox this shows up as the error: "TypeError: this is undefined"

Error information

Noticed this error while going through the error logs

user agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.125

Stack trace:

at URL1:125:759
at Object.showDownloadWithSources  URL1:125:288
at Object.showDownload  URL1:124:930
at Object.showMenuItem  URL1:140:156
at HTMLLIElement.<anonymous>  URL1:139:680
at HTMLLIElement.dispatch  URL2:73:742
at HTMLLIElement.elemData.handle  URL2:70:388

URL1: https://www.mediawiki.org/w/load.php?lang=en&modules=fullScreenApi%7Cjquery.debouncedresize%2CembedMenu%2ChoverIntent%7Cjquery.ui.touchPunch%7Cmediawiki.UtilitiesTime%2CabsoluteUrl%2Cclient%7Cmediawiki.language.names%7Cmw.Api%2CEmbedPlayer%2CEmbedPlayerNative%2CEmbedTypes%2CMediaElement%2CMediaPlayer%2CMediaPlayers%2CMediaSource%2CMediaWikiPlayerSupport%2CTextSource%2CTimedText%2CajaxProxy&skin=vector&version=1npkk
URL2: https://www.mediawiki.org/w/load.php?lang=en&modules=Spinner%2Cjquery%7Cext.tmh.OgvJsSupport%7Cjquery.embedPlayer%2CloadingSpinner%2CmwEmbedUtil%2CtriggerQueueCallback%7Cmw.EmbedPlayer.loader%7Cmw.MediaWikiPlayer.loader%7Cmw.MwEmbedSupport%2CPopUpMediaTransform%7Cmw.MwEmbedSupport.style%7Cmw.PopUpMediaTransform.styles%7Cmw.TMHGalleryHook.js%7Cmw.TimedText.loader&skin=vector&version=1m2o9

https://logstash.wikimedia.org/app/kibana#/doc/logstash-*/logstash-2020.06.17/clienterror/?id=AXLD34ttK6TSR36GQJV0

Event Timeline

Krinkle edited projects, added Kaltura player; removed TimedMediaHandler.
Krinkle subscribed.

He, it auto-removed the other one. Didn't mean that. Nevermind :)

The Kaltura path will be switched off soon.

@Krinkle do you know when? This is causing about 3% of all the errors we're logging so is a significant bug.

Is there a reproducible issue with the general workflow of video playback?

I don't know the ETA currently. \cc @brion.

Jdlrobson raised the priority of this task from Low to High.Sep 10 2020, 11:08 PM
Jdlrobson lowered the priority of this task from High to Medium.
Jdlrobson updated the task description. (Show Details)

It's causing about 7% of all our client side errors (including gadgets) and is stopping users from downloading files so I'd live to bump this to high for now.

Jdlrobson renamed this task from Uncaught TypeError: Cannot read property 'getMIMEType' of undefined to Uncaught TypeError: Cannot read property 'getMIMEType' of undefined / TypeError: this is undefined.Sep 10 2020, 11:10 PM
Jdlrobson renamed this task from Uncaught TypeError: Cannot read property 'getMIMEType' of undefined / TypeError: this is undefined to Cannot download media (Uncaught TypeError: Cannot read property 'getMIMEType' of undefined / TypeError: this is undefined).
Jdlrobson updated the task description. (Show Details)
Jdlrobson raised the priority of this task from Medium to High.Sep 14 2020, 4:05 AM

Change 628456 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/extensions/TimedMediaHandler@master] Use source rather than this which doesn't refer to anything

https://gerrit.wikimedia.org/r/628456

This bug was pretty easy to replicate and fix using debugger and breaking and the fix seemed pretty obvious to me.

Given the volume on this bug I'm a little worried this is going to cause problems as we roll out client side error logging further. @brion could you please take a look at the proposed fix before next branch cut? I'd appreciate it a lot!

Change 628456 merged by jenkins-bot:
[mediawiki/extensions/TimedMediaHandler@master] Use source rather than this

https://gerrit.wikimedia.org/r/628456

Jdlrobson claimed this task.

Screen Shot 2020-09-23 at 9.31.49 PM.png (584×2 px, 101 KB)

Clear tail off with group1 wikis after Wednesday deploy.
Screen Shot 2020-09-23 at 9.32.21 PM.png (598×2 px, 84 KB)