Last modified: 2011-03-15 07:22:59 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 T25716, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23716 - Rollback and mark as patrolled doesn't work
Rollback and mark as patrolled doesn't work
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Andrew Garrett
:
: 27856 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-30 18:38 UTC by Nikola Kovacs
Modified: 2011-03-15 07:22 UTC (History)
3 users (show)

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


Attachments
Fixed rollback and mark as patrolled and replaced leftover postEditUpdate (1.20 KB, patch)
2010-11-04 00:18 UTC, Nikola Kovacs
Details

Description Nikola Kovacs 2010-05-30 18:38:39 UTC
When I try to roll back an edit to a comment, the rollback silently fails.

Steps to reproduce:
1.Start a new thread
2.Log out
3.Edit the comment as an IP
4.Log back in
5.Go to recent changes, and click the rollback link at the end of the rc line for your IP edit

Actual result:
You are taken to the thread's page, but the edit is not undone

Expected result:
The IP edit should be undone.

This is on MW1.16 beta 3 with r67097 of LiquidThreads.
Comment 1 Nikola Kovacs 2010-05-30 18:41:40 UTC
The same happens with "mark as patrolled", i.e. click on "diff" in RC, then click "mark as patrolled". You are taken to the thread's page, but the edit remains unpatrolled
Comment 2 Max Semenik 2010-08-01 08:55:13 UTC
Another instance of this bug: rollback doesn't work for normal edits on LQT-enabled pages, e.g. http://translatewiki.net/w/i.php?title=User:MaxSem/lqt&action=history
Comment 3 Andrew Garrett 2010-09-06 13:28:53 UTC
Fix committed in r72492.
Comment 4 Nikola Kovacs 2010-10-05 10:12:12 UTC
This still doesn't work for me with r74266 and MW1.16
Comment 5 Niklas Laxström 2010-10-05 11:57:39 UTC
Works for me. Are you sure you are running the trunk branch of Lqt?
Comment 6 Nikola Kovacs 2010-10-05 12:05:01 UTC
Yes, and I checked Dispatch.php too, the modifications are there. Are you using MW1.16? Can it have anything to do with that? Anyway, I'm going to ask for sysop rights on liquidthreads labs and try it there.
Comment 7 Nikola Kovacs 2010-10-06 08:43:52 UTC
Ok, I tried rolling back this diff: http://liquidthreads.labs.wikimedia.org/w/index.php?title=Thread:User_talk:Nx/Test&curid=3217&diff=3963&oldid=3962

it didn't work.
Comment 8 Nikola Kovacs 2010-11-03 23:51:42 UTC
I think you've misunderstood me. I'm talking about rollbacks to individual comments, not the page header.

Anyway, it seems the fix for this is simple: in Dispatch.php, in static function threadPermalinkMain, there is a elseif ( $action == 'delete' } branch, just add 'rollback' and 'markpatrolled', i.e.:

		} elseif ( $action == 'rollback' || $action = 'markpatrolled' || $action = 'delete' ) {
			return true;

The current version of LQT tries to call LqtView::postEditUpdates() which doesn't exist any more, so rollback errors out, but it does roll back the edit, and mark as patrolled works. So I'm guessing this should work.
Comment 9 Nikola Kovacs 2010-11-04 00:18:29 UTC
Created attachment 7784 [details]
Fixed rollback and mark as patrolled and replaced leftover postEditUpdate

Ok, this seems to work, I replaced the postEditUpdate in onArticleSaveComplete with a hopefully equivalent editMetadataUpdates.
Comment 10 Andrew Garrett 2010-11-09 03:50:25 UTC
Patch committed to trunk.

Thanks very much for your feedback and help in fixing this issue.
Comment 11 Nikola Kovacs 2011-03-14 08:16:49 UTC
*** Bug 27856 has been marked as a duplicate of this bug. ***
Comment 12 Helder 2011-03-14 22:42:47 UTC
(In reply to comment #11)
> *** Bug 27856 has been marked as a duplicate of this bug. ***
Would it be possible to backport the fix to MW 1.17 version used on pt.wikibooks?
Comment 13 Antoine "hashar" Musso (WMF) 2011-03-15 07:22:59 UTC
Patch was applied by r76372 and r76377
I have marked them for deploying on live site by tagging them 1.17wmf1

LiquidThread is a not well updated on live site. I am guessing this is related to a lack of code review, possible security issues or some critical bugs.

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


Navigation
Links