Page MenuHomePhabricator

blank title throws error: "mw.Title: Could not parse title ".jpg""
Closed, ResolvedPublic

Description

I blanked the field of the title in preparation to pick another name, and I got:

mw.Title: Could not parse title ".jpg"


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=51308

Details

Reference
bz39642

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:09 AM
bzimport added a project: UploadWizard.
bzimport set Reference to bz39642.
bzimport added a subscriber: Unknown Object (MLST).

The destination filename check relies on a mw.Title object.

you can not have "File:.jpg" as a valid title object, so errors are thrown. Worse, you cannot fallback to returning null, because this is the only location keeping track of the file extension.

Point of note. is it wise to have this as a mw.Title ? you can't seem to enter 'invalid titles' this way, which might be a bad UI experience ?

Patch has a -1 plus needs rebase.

Nischay: This issue has been assigned to you a while ago.
Could you inform us whether you are still working (or still plan to work) on this issue?
Only in case you do not plan to work on this issue anymore, should the assignee be set back to default and the bug status changed from ASSIGNED to NEW/UNCONFIRMED? Thanks.

Nischay Nahata: I am resetting the assignee of this issue to default because there has been no signs of progress for the last months. Feel free to assign it to yourself again when you plan to work on this. Thanks for your understanding.

Change 49280 abandoned by Bartosz Dziewoński:
Catch error thrown by unparseable titles.

Reason:
Hard to tell exactly when and how, but this has definitely been fixed in the meantime.

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

matmarex claimed this task.
matmarex subscribed.

Can not reproduce.