https://bugzilla.wikimedia.org/show_bug.cgi?id=57708

       Web browser: ---
            Bug ID: 57708
           Summary: Editing section through API would always result in
                    editconflict
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I was crafting a Twinkle module for zhwiki to close AfD requests: delete the
page and close the discussion in that day's log. However doing the latter
always results in edit conflict, and the edit did not came through. I'm sure
the page is not actually in conflict (tried with multiple pages under that
prefix).

Chrome's inspect element gives:

0)  action: delete
    ...

1)  action: query
    prop: info|revisions
    intoken: edit
    titles: Wikipedia:頁面存廢討論/記錄/2013/11/20
    rvprop: content
    rvsection: 7
    inprop: protection
    format: xml

  Response:
<?xml version="1.0"?><api><query><pages><page pageid="3726834" ns="4"
title="Wikipedia:頁面存廢討論/記錄/2013/11/20" contentmodel="wikitext"
pagelanguage="zh" touched="2013-11-28T11:32:18Z" lastrevid="29346485"
counter="" length="23624" starttimestamp="2013-11-28T11:32:19Z"
edittoken="ff2debd7771781fe58906b44f4deabdc+\"><protection /><revisions><rev
contentformat="text/x-wiki" contentmodel="wikitext"
xml:space="preserve">====[[史帕克]]====
{{Findsources|史帕克}}
*{{vd}} 缺乏關注度。--[[User talk:SiuMai|Qui cherche trouve]] 2013年11月26日 (二) 02:45
(UTC)</rev></revisions></page></pages></query></api>

2)  action: edit
    title: Wikipedia:頁面存廢討論/記錄/2013/11/20
    summary: /* 史帕克 */ 删除 ([[WP:TW|TW]])
    watchlist: nochange
    section: 7
    notminor: true
    text: ====[[史帕克]]====
{{delh|d}}
{{Findsources|史帕克}}
*{{vd}} 缺乏關注度。--[[User talk:SiuMai|Qui cherche trouve]] 2013年11月26日 (二) 02:45
(UTC)
----
: 删除。--~~~~
{{delf}}
    basetimestamp: 2013-11-28T11:32:18Z
    starttimestamp: 2013-11-28T11:32:19Z
    nocreate:
    format: xml
    token: ff2debd7771781fe58906b44f4deabdc+\

  Response:
<?xml version="1.0"?><api servedby="mw1120"><error code="editconflict"
info="Edit conflict detected" /></api>

Retry with basetimestamp removed would let the edit go through, but changing
that date to tomorrow won't. Purging also does nothing. When pasting the exact
text in index.php it would go through normally.

Please kindly advise if I had screwed anything up. Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to