Last modified: 2013-08-06 13:56:14 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 T54538, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52538 - action=edit&section=new&appendtext=... duplicates lead content
action=edit&section=new&appendtext=... duplicates lead content
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-05 01:23 UTC by Yair Rand
Modified: 2013-08-06 13:56 UTC (History)
4 users (show)

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


Attachments

Description Yair Rand 2013-08-05 01:23:11 UTC
Using api.php?action=edit&title=Talk:Sandbox&section=new&sectiontitle=bar&appendtext=baz&token=(token), where Talk:Sandbox contains the content "foo", results in the content "foo\n==bar==\nfoobaz". The lead content is duplicated in the new section, before the appendtext content.
Comment 1 Brad Jorsch 2013-08-05 15:31:43 UTC
I'm not entirely sure whether specifying appendtext/prependtext with section=new should be an error or if we should DWIM and append/prepend to an empty section. 

I'll go with the latter for now, but I could easily be convinced to do the former.
Comment 2 Gerrit Notification Bot 2013-08-05 15:32:11 UTC
Change 77716 had a related patch set uploaded by Anomie:
API: DWIM for action=edit&section=new&appendtext=...

https://gerrit.wikimedia.org/r/77716
Comment 3 Gerrit Notification Bot 2013-08-05 22:00:53 UTC
Change 77716 merged by jenkins-bot:
API: DWIM for action=edit&section=new&appendtext=...

https://gerrit.wikimedia.org/r/77716
Comment 4 Brad Jorsch 2013-08-06 13:56:14 UTC
The patch is now merged. It should be deployed to WMF wikis with 1.22wmf13, see https://www.mediawiki.org/wiki/MediaWiki_1.22/Roadmap for the schedule.

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


Navigation
Links