Page MenuHomePhabricator

UploadWizard: Show proper error message instead of throwing JS errors when entering an invalid title
Closed, ResolvedPublic

Description

How to reproduce:

  1. Go to https://commons.wikimedia.org/wiki/Special:UploadWizard
  2. Proceed until the "describe" step
  3. Enter an invalid title, e.g. containing a "["
  4. UploadWizard will throw:

Error: Unable to parse title
https://bits.wikimedia.org/commons.wikimedia.org/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2CloadingSpinner%2CmwEmbedUtil%7Cmw.MwEmbedSupport&only=scripts&skin=vector&version=20140505T003542Z
Line 206

Expected: Error message in UI and not in JS console :P


Version: unspecified
Severity: normal

Details

Reference
bz64908

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:18 AM
bzimport added a project: UploadWizard.
bzimport set Reference to bz64908.
Gilles raised the priority of this task from High to Unbreak Now!.Dec 4 2014, 10:11 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to High.Dec 4 2014, 11:23 AM