Page MenuHomePhabricator

Wrong page content model "wikitext" on importing a JavaScript page
Closed, ResolvedPublic

Description

I imported all versions from
https://commons.wikimedia.org/wiki/MediaWiki:Gadget-LanguageSelect.js
to
https://www.wikidata.org/wiki/MediaWiki:Gadget-LanguageSelect.js

The script didn't loaded because page content model was set to "wikitext" instead to "JavaScript".

Expected result: The page content model should set to "JavaScript" when importing from a .js page to a .js page.


Version: 1.23.0
Severity: normal

Details

Reference
bz59003

Event Timeline

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

The content model was adjust by a edit or by delete/restore of the page, you can see on the api[1] that two old versions of the script have a contentmodel of wikitext. Sounds like a ContentHandler problem on import.

[1] https://www.wikidata.org/w/api.php?action=query&titles=MediaWiki:Gadget-LanguageSelect.js&prop=revisions&rvprop=contentmodel&rvlimit=max

(In reply to comment #1)

Sounds like a ContentHandler problem on import.

Tentatively moving to CH.

Fomafix claimed this task.

The bug seams to be solved. Importing an export of a JavaScript page set the page content model correct. Tested on a local wiki.