Last modified: 2014-11-15 12:07:26 UTC
when creating a new section via the api - if the title param is supplied - the edit summary is discarded.
Exact steps and command welcome (plus order of commands).
err steps are - write an R library that works with the api using RCurl's postForm do login (2step) get an edit token (1step) do an edit via: addNewSection<-function(title="Wikipedia_talk:Sandbox", sectiontitle="sectiontitle", summaryText, text="text", editToken, curl) { #perfom the edit using these parameters editPars = list( action="edit", title=title, section="new", sectiontitle=sectiontitle, watchlist="preferences", summary=summaryText, text=text, bot="", minor="", format="xml", token=editToken )#add token to request x1=postForm(uri=api,.params=editPars,style="httppost",curl=curl) #edit #parse the result doc=xmlInternalTreeParse(x1, trim = TRUE) return(doc) } res=addNewSection(title="Wikipedia:Sandbox", sectiontitle=paste("WRAP Test ",Sys.time()), summaryText="WRAP test edit", text="Hello World MW api\n\n", editToken=editToken, curl=h) when sectiontitle is blank - summaryText works per the docs - when it is specified as shown edit summary remains blank. hope this helps :-)
This sounds like the issue that was fixed with Gerrit change #151645. That change is going out with 1.24wmf17, which is already deployed on test.wikipedia.org and mediawiki.org. Can you test against one of those sites (or Beta Labs) and see if you can still reproduce the bug?
Oren: Please retest, see comment 3.
Unfortunately closing this report as no further information has been provided. orenbochman: Please feel free to reopen this report if you can provide the information asked for (see comment 3) and if this still happens. Thanks!