https://bugzilla.wikimedia.org/show_bug.cgi?id=43784
Web browser: ---
Bug ID: 43784
Summary: [REGRESSION] When attempting to add text through
action=edit§ion=new on user script pages, an
internal error occurs
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Page editing
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l