Page MenuHomePhabricator

UploadWizard broken on test2wiki
Closed, ResolvedPublic

Description

I normally use test2.wikipedia.org to test UploadWizard to avoid disrupting Commons, but now it throws an Uncaught RangeError: Maximum call stack size exceeded on every upload attempt.

Event Timeline

Tgr raised the priority of this task from to Needs Triage.
Tgr updated the task description. (Show Details)
Tgr added a project: UploadWizard.
Tgr added a subscriber: Tgr.
Restricted Application added subscribers: StudiesWorld, Steinsplitter, Aklapper. · View Herald Transcript
Aklapper triaged this task as High priority.Feb 1 2016, 3:43 PM

This is somewhat of a configuration error at test2wiki (and doesn't affect production wikis, as far as I know), but UploadWizard definitely should be handling this more gracefully. The issue occurs when the user's language is not an allowed language for the file description.

Change 267699 had a related patch set uploaded (by Bartosz Dziewoński):
Prevent infinite recursion in uw.DescriptionDetailsWidget.static.getDefaultLanguage

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

Change 267699 merged by jenkins-bot:
Prevent infinite recursion in uw.DescriptionDetailsWidget.static.getDefaultLanguage

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

Should be fixed on master. Since it's not affecting anything important to me, I'm not going to be backporting the patch, but please feel free to do it if it's causing problems for you.