Page MenuHomePhabricator

#mw-newentity-form1 sometimes has incorrect action attribute
Closed, DuplicatePublic

Description

I got this somehow. Note that Special: prefix in action= is missing.

<form id='mw-newentity-form1' action='/wiki/NewItem' method='post' enctype='application/x-www-form-urlencoded' class='mw-htmlform-ooui oo-ui-layout oo-ui-formLayout'>

This was achieved by trying to create an item with language=zh-cn, label=User:... (which is rejected by "Links to userpages" on Wikidata).

Event Timeline

liangent created this task.Jan 14 2016, 9:33 AM
liangent updated the task description. (Show Details)
liangent raised the priority of this task from to Needs Triage.
liangent added a subscriber: liangent.
Restricted Application added a project: Wikidata. · View Herald TranscriptJan 14 2016, 9:33 AM
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript
thiemowmde triaged this task as High priority.Sep 1 2016, 3:29 PM
thiemowmde added a subscriber: thiemowmde.

I can reproduce this as described. Works in all languages. Simply go to https://www.wikidata.org/wiki/Special:NewItem?label=User:Test and try to submit the form twice. I believe this is a bug in the HTMLForm class.