Last modified: 2010-05-15 15:33:27 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 T3750, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1750 - When editing current version of a page, oldest revision (with highest "oldid") shows up in edit form
When editing current version of a page, oldest revision (with highest "oldid"...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.4.x
All All
: High major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://it.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-24 19:13 UTC by hhw1ry202
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Attachments

Description hhw1ry202 2005-03-24 19:13:18 UTC
When editing the current version of a page at the italian Wikipedia, in some cases the oldest 
version is shown in the edit box instead. An example is to be seen at the page
http://it.wikipedia.org/wiki/Klingon
The following edit by the user 5Y:
http://it.wikipedia.org/w/index.php?title=Klingon&diff=476681&oldid=426011
was done by a simple PHP script that GETs the URL
http://it.wikipedia.org/w/index.php?title=Klingon&action=edit
and does a preg_replace() on the content of the textarea to disambiguate links (in this case 
"Capitale"). Comparing the oldest revision and the one by 5Y shows that it must have received the 
oldest revision instead of the current one:
http://it.wikipedia.org/w/index.php?title=Klingon&diff=476681&oldid=475981

The same thing must have happened to other users editing pages manually. Here are two examples 
where the user only wanted to add a category link:
http://it.wikipedia.org/wiki/Plugin
http://it.wikipedia.org/wiki/Monastero_di_Rila
Here are the diffs between the problematic edit and the previous one:
http://it.wikipedia.org/w/index.php?title=Plugin&diff=458434&oldid=427270
http://it.wikipedia.org/w/index.php?title=Monastero_di_Rila&diff=458428&oldid=438260
And these are the diffs between the problematic edit and the oldest revision:
http://it.wikipedia.org/w/index.php?title=Plugin&diff=458434&oldid=457838
http://it.wikipedia.org/w/index.php?title=Monastero_di_Rila&diff=458428&oldid=457790

There have been more occurrences of this problem. If necessary, we can try to find them again.
Comment 1 Melancholie 2005-04-06 15:50:50 UTC
(In reply to comment #0)
> When editing the current version of a page at the italian Wikipedia, in some
cases the oldest 
> version is shown in the edit box instead. An example is to be seen at the page
> http://it.wikipedia.org/wiki/Klingon
> The following edit by the user 5Y:
> http://it.wikipedia.org/w/index.php?title=Klingon&diff=476681&oldid=426011
> was done by a simple PHP script that GETs the URL
> http://it.wikipedia.org/w/index.php?title=Klingon&action=edit
> and does a preg_replace() on the content of the textarea to disambiguate links
(in this case 
> "Capitale"). Comparing the oldest revision and the one by 5Y shows that it
must have received the 
> oldest revision instead of the current one:
> http://it.wikipedia.org/w/index.php?title=Klingon&diff=476681&oldid=475981
> 
> The same thing must have happened to other users editing pages manually. Here
are two examples 
> where the user only wanted to add a category link:
> http://it.wikipedia.org/wiki/Plugin
> http://it.wikipedia.org/wiki/Monastero_di_Rila
> Here are the diffs between the problematic edit and the previous one:
> http://it.wikipedia.org/w/index.php?title=Plugin&diff=458434&oldid=427270
>
http://it.wikipedia.org/w/index.php?title=Monastero_di_Rila&diff=458428&oldid=438260
> And these are the diffs between the problematic edit and the oldest revision:
> http://it.wikipedia.org/w/index.php?title=Plugin&diff=458434&oldid=457838
>
http://it.wikipedia.org/w/index.php?title=Monastero_di_Rila&diff=458428&oldid=457790
> 
> There have been more occurrences of this problem. If necessary, we can try to
find them again.

(In reply to comment #1)
Exactly the same happened on April 3rd, 2005 on the German Wiktionary in the
entry [http://de.wiktionary.org/w/index.php?title=%E8%88%B9&action=history]
(please see [Wikipedia:Village_pump_%28technical%29#Serious_software_problems.21
village pump] for more information)!! -- ~~~~
Comment 2 Borislav Manolov 2005-04-22 23:24:16 UTC
This happened to me on bg.wikipedia (I was editing with my bot):
http://bg.wikipedia.org/w/index.php?title=Diablo_%28%D0%B8%D0%B3%D1%80%D0%B0%29&diff=142430&oldid=120987

--Borislav
Comment 3 Zigger 2005-06-08 14:45:51 UTC
In all five cases, the oldest revision id had an out-of-sequence value, being
higher than the current revision.  This was consistent enough that you can
predict where it went wrong just from looking at the "oldid"s in the histories:

http://it.wikipedia.org/w/index.php?title=Klingon&action=history
http://it.wikipedia.org/w/index.php?title=Plugin&action=history
http://it.wikipedia.org/w/index.php?title=Monastero_di_Rila&action=history
http://de.wiktionary.org/w/index.php?title=%E8%88%B9&action=history
http://bg.wikipedia.org/w/index.php?title=Diablo_%28%D0%B8%D0%B3%D1%80%D0%B0%29&action=history

Coincidence?

Is this still an issue in 1.4.5 and HEAD?
Comment 4 Brion Vibber 2005-11-27 08:49:37 UTC
Probably caused by bad merging of duplicate 'cur' table revisions when we finalized the 
unique indexes sitewide. In some cases it picked the older instead of the newer version 
to keep, which would most likely be a duplicate submission of the original page creation 
(there were some bugs with simultaneous creation which could get triggered by multiple 
submissions when response time was very large).

The preconditions for this are no longer possible (the page table has a unique index on 
titles, making duplicates impossible), though it's possible that other pages remain for 
which an older version was kept as cur during the index updates months ago.
Comment 5 wclark 2006-09-10 00:35:55 UTC
Marking this bug as FIXED per Brion Vibber's comments above (and assuming that
there are no lingering timebombs waiting from a year ago).

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


Navigation
Links