Last modified: 2013-02-24 20:45:41 UTC
Bug title for later reference (in case it is changed): When attempting to add text through action=edit§ion=new on user script pages, an internal error occurs How to reproduce the issue? With administrative privileges, go to https://commons.wikimedia.org/w/index.php?title=User:Rillke/common.js&action=edit&preload=MediaWiki%3AVisualFileChange.js%2Finstall.js&editintro=Template%3AInstall+script-editintro§ion=new and press "Save" without filling in the subject (if you would, you would invalidate the JavaScript). Current behaviour: This reproducibly gives: Internal error [574fa4cd] 2013-01-09 15:37:24: Fatal exception of type MWException Expected behaviour: The line contained in the edit form is added to the existing contents of the user's JavaScript file. Why is this an issue? You may think it does not make sense - adding sections to JavaScripts. That's true. But adding arbitrary text to user script files e.g. to import other user scripts makes sense. section=new is the only way achieving this without using of the API. Why is this marked as regression? Because it worked as described in "Expected behaviour:" before. How could a fix look like? Either "Expected behaviour:" is restored or an other way is provided, adding text (JavaScript code) to JavaScript pages without having the user to copy&paste, type or whatever. What, if you are unable reproducing the bug: Copy Wikimedia Common's user Rillke's settings (user language: de, no edit toolbars, ...) to your account and try it again.
I bet content handler issue now that those pages aren't "wikitext"
*** This bug has been marked as a duplicate of bug 43008 ***