Last modified: 2014-11-15 12:07:26 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 T71683, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69683 - when creating a new section via the api - if the title param is supplied - the edit summary is discarded
when creating a new section via the api - if the title param is supplied - th...
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.24rc
All All
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-18 05:25 UTC by orenbochman
Modified: 2014-11-15 12:07 UTC (History)
5 users (show)

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


Attachments

Description orenbochman 2014-08-18 05:25:14 UTC
when creating a new section via the api - if the title param is supplied - the edit summary is discarded.
Comment 1 Andre Klapper 2014-08-18 09:30:37 UTC
Exact steps and command welcome (plus order of commands).
Comment 2 orenbochman 2014-08-18 10:51:13 UTC
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 :-)
Comment 3 Brad Jorsch 2014-08-18 14:18:01 UTC
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?
Comment 4 Andre Klapper 2014-09-07 19:30:31 UTC
Oren: Please retest, see comment 3.
Comment 5 Andre Klapper 2014-11-15 12:07:26 UTC
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!

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


Navigation
Links