Port MalformedTitleException to JS and throw from constructor for mw.Title so we know why a Title is unparseable.
Description
Details
Status | Subtype | Assigned | Task | |
---|---|---|---|---|
· · · | ||||
Duplicate | Sn1per | T87314 Special:UploadWizard gives undescriptive error message upon too long filename | ||
Declined | Sn1per | T89648 Implement MalformedTextException in JS and throw from mw.Title construtor | ||
· · · |
Event Timeline
IMO the proper fix is to not be trying to squeeze a user-submitted text description into the filename in the first place... filenames are hard to change and impossible to localize, so using 'human-readable descriptions' as filenames turned out to be a bad idea in practice.
Change 211077 had a related patch set uploaded (by Sn1per):
[WIP] Implement Title.newFromTextThrow and MalformedTitleException for JS
Change 211077 merged by jenkins-bot:
Implement MalformedTitleException for JS and use in constructor
Change 215345 had a related patch set uploaded (by Sn1per):
Load messages in mw.Title for specific MalformedTitleExceptions
Change 215345 abandoned by Sn1per:
mediawiki.Title: Load messages for specific MalformedTitleExceptions
Reason:
Not necessary