Hello.
I am unable to edit a page that was earlier deleted, and its last revision was restored.
I have attached the log of my test app.
-- Beau
[19-09-2009 11:27:11] DEBUG Sending request $VAR1 = { 'prop' => 'info', 'titles' => 'User:Beau.bot/listy/brudnopisy', 'format' => 'php', 'intoken' => 'edit', 'action' => 'query' }; [19-09-2009 11:27:12] DEBUG Received response $VAR1 = { 'query' => { 'pages' => { '1781201' => { 'starttimestamp' => '2009-09-19T09:27:10Z', 'edittoken' => *REMOVED*, 'ns' => 2, 'lastrevid' => 18499503, 'length' => 5369, 'pageid' => 1781201, 'title' => 'Wikipedysta:Beau.bot/listy/brudnopisy', 'counter' => 0, 'new' => '', 'touched' => '2009-09-16T09:43:26Z' } }, 'normalized' => { '0' => { 'to' => 'Wikipedysta:Beau.bot/listy/brudnopisy', 'from' => 'User:Beau.bot/listy/brudnopisy' } } } }; [19-09-2009 11:27:12] DEBUG Sending request $VAR1 = { 'summary' => 'aktualizacja listy', 'format' => 'php', 'text' => 'test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test', 'action' => 'edit', 'bot' => 1, 'title' => 'User:Beau.bot/listy/brudnopisy', 'token' => *REMOVED* }; [19-09-2009 11:27:12] DEBUG Received response $VAR1 = { 'error' => { 'info' => 'The page has been deleted since you fetched its timestamp', 'code' => 'pagedeleted' } }; [19-09-2009 11:27:12] FATAL API error: The page has been deleted since you fetched its timestamp
On 19.09.2009, 13:35 Beau wrote:
Hello.
I am unable to edit a page that was earlier deleted, and its last revision was restored.
Your edit request doesn't include the timestamp you've been given in prop=info. Apparently, ClueBot's API module is in dire need of updates.
Hello.
Max Semenik wrote:
Your edit request doesn't include the timestamp you've been given in prop=info. Apparently, ClueBot's API module is in dire need of updates.
I want to ignore all edit conflicts - the page should be overwritten. The request does not have to contain the timestamp - such edits are possible, but not in this particular case.
On 19.09.2009, 18:51 Beau wrote:
I want to ignore all edit conflicts - the page should be overwritten. The request does not have to contain the timestamp - such edits are possible, but not in this particular case.
Then you'll have to take all problems with previously deleted pages as unavoidable prerequisite. Timestamps are here for a reason, and ignoring them leads to some consequences.
Hello.
Max Semenik wrote:
Then you'll have to take all problems with previously deleted pages as unavoidable prerequisite. Timestamps are here for a reason, and ignoring them leads to some consequences.
Hmm... You probably know something that I not. Can you update the page: http://www.mediawiki.org/wiki/API:Edit_-_Create%26Edit_pages#Parameters
The lines bellow seem to be outdated: # basetimestamp: Timestamp of the last revision, used to detect edit conflicts. Leave unset to ignore conflicts # starttimestamp: Timestamp when you obtained the edit token. Used to detect edit conflicts; leave unset to ignore conflicts.
2009/9/19 Beau beau@adres.pl:
Hello.
Max Semenik wrote:
Then you'll have to take all problems with previously deleted pages as unavoidable prerequisite. Timestamps are here for a reason, and ignoring them leads to some consequences.
Hmm... You probably know something that I not. Can you update the page: http://www.mediawiki.org/wiki/API:Edit_-_Create%26Edit_pages#Parameters
The lines bellow seem to be outdated: # basetimestamp: Timestamp of the last revision, used to detect edit conflicts. Leave unset to ignore conflicts # starttimestamp: Timestamp when you obtained the edit token. Used to detect edit conflicts; leave unset to ignore conflicts.
starttimestamp's description is wrong: it's really used to detect page deletions and recreations. If you want to suppress errors of this kind, use the &recreate parameter.
Roan Kattouw (Catrope)
Hello.
Roan Kattouw wrote:
starttimestamp's description is wrong: it's really used to detect page deletions and recreations. If you want to suppress errors of this kind, use the &recreate parameter.
Thank you for your clarification. I have updated the documentation: http://www.mediawiki.org/w/index.php?title=API%3AEdit_-_Create%26Edit_pages&...
mediawiki-api@lists.wikimedia.org