Last modified: 2013-02-24 20:45:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45784, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43784 - [REGRESSION] When attempting to add text through action=edit&section=new on user script pages, an internal error occurs
[REGRESSION] When attempting to add text through action=edit&section=new on u...
Status: RESOLVED DUPLICATE of bug 43008
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
https://commons.wikimedia.org/wiki/He...
: code-update-regression
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-09 15:51 UTC by Rainer Rillke @commons.wikimedia
Modified: 2013-02-24 20:45 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rainer Rillke @commons.wikimedia 2013-01-09 15:51:16 UTC
Bug title for later reference (in case it is changed):
When attempting to add text through action=edit&section=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&section=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.
Comment 1 Bawolff (Brian Wolff) 2013-01-10 21:08:51 UTC
I bet content handler issue now that those pages aren't "wikitext"
Comment 2 Helder 2013-02-24 20:45:41 UTC

*** This bug has been marked as a duplicate of bug 43008 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links