Page MenuHomePhabricator

Unable to rename wikitext pages into .js to User or MediaWiki namespace
Closed, ResolvedPublic

Description

See https://meta.wikimedia.org/w/index.php?title=User_talk:Isabeau777/EditCounterGlobalOptIn.js&action=history.

The user created the page in the main namespace by accident. When trying to move it to the userspace, I get the error message:

You do not have permission to move this page, for the following reason:

The desired destination uses a different content model. Can not convert from wikitext to JavaScript.

This is nonsensical, since it is possible to enter everything on JS pages anyway, also wikitext.


Version: 1.22.0
Severity: normal

Details

Reference
bz53115

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:03 AM
bzimport set Reference to bz53115.
bzimport added a subscriber: Unknown Object (MLST).

Are you sure that this is related to Wikidata?

(In reply to comment #1)

Are you sure that this is related to Wikidata?

Not Wikidata, but ContentHandler, which is part of the Wikidata project. Also confirming that I can reproduce this bug.

ContentHandler should ideally be able to recognized that both contentmodels are text based, and convert it automatically.

Same thing while trying to move vice versa from e.g. User:Smb/Page to User:Smb/Page.js

I'm cleaning up an old script page in the Wikipedia Project-namespace (Wikipedia:FooBar) but unable to do a rename to MediaWiki:FooBar.js

This seems an unnecessary and unproductive restriction. They're both plain text models that have no conversion or abstraction layer.

  • This bug has been marked as a duplicate of bug 43049 ***