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).

Related Objects

Event Timeline

liangent raised the priority of this task from to Needs Triage.
liangent updated the task description. (Show Details)
liangent subscribed.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript
thiemowmde subscribed.

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.