Last modified: 2014-09-24 00:53:43 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 T22789, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20789 - What links here pager says "No pages link to ..." when it's not true
What links here pager says "No pages link to ..." when it's not true
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Jarry1250
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-23 22:16 UTC by Danny B.
Modified: 2014-09-24 00:53 UTC (History)
5 users (show)

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


Attachments
Functional patch v1 (2.62 KB, patch)
2011-03-15 21:04 UTC, Jarry1250
Details
Version 2 of Patch (2.59 KB, patch)
2011-12-14 02:10 UTC, Chris James
Details

Description Danny B. 2009-09-23 22:16:35 UTC
Steps to reproduce:

1) Choose some page and load its What links here special page. The list needs to be more than one page long (must show "next XY").
2) Remove links/transclusions from all pages listed on that last WLH page.
3) Hit reload button.

It will say "No pages link to ..." although there is at least one previous page full of links.
Comment 1 Platonides 2010-04-09 21:06:57 UTC
Can you provide a sample?
Comment 2 Jarry1250 2011-03-15 19:59:49 UTC
This must be a manifestation of the issue that whenever a bad "from" value is passed, you get the (empirically false) message that *no* pages link to the page in question.

e.g. http://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Main_page&from=99999999&back=254925

Don't know what the best solution would be. Probably "No more pages link to the current page. Click _here_ to return to the previous listing." where the link would be based on the "back" code.
Comment 3 Jarry1250 2011-03-15 21:04:52 UTC
Created attachment 8298 [details]
Functional patch v1

The patch attached illustrates how I would go about ameliorating the situation (not commit-ready).

In short, I would file scenarios as follows:

                 $from set?
                      |
     -------------------------------
     | no                           | yes
     |                              |
     "no results found" (existing)  |
                                    |
                                $back set?
                --------------------------
                | no (shouldn't happen)  | yes
                |                        |
    "no more results (go back to start)" |
                                         |
                            "no more results
                            (go back a page)"

The one outlined in this bug is yes-yes, which results in a helpful "back a page" link being presented to the user. That seems a reasonable resolution to my way of thinking. Not sure about supporting yes-no, it shouldn't happen unless you mess with the URL (I think!).
Comment 4 Platonides 2011-07-31 21:02:12 UTC
Looks good. I would make nomorelinkshere be "$1 You may wish to return to the [[:Special:Whatlinkshere/$2&from=$3&back=$3|previous page of listings]].", though.
With $1 being wfMsg($errMsg);
And as you probably know [[:Special:Whatlinkshere/$1&from=$2&back=$2 syntax doesn't work.
Comment 5 Sumana Harihareswara 2011-11-04 19:14:35 UTC
Jarry1250, did you have a chance to respond to Platonides's review?  Adding the "reviewed" keyword.
Comment 6 Jarry1250 2011-11-05 01:15:36 UTC
Oh, I agreed with Platonides. I am happy to write a new patch, but since I don't have commit access anyways, the committer can also simply make the changes Platonides suggested (probably what I was thinking when I didn't reply 3 months ago).
Comment 7 Platonides 2011-11-06 22:57:06 UTC
We would also be happy to accept that patch from you :)
Comment 8 Jarry1250 2011-11-07 13:27:58 UTC
In which case, I shall put it on my (rather long) todo list :)
Comment 9 Chris James 2011-12-14 02:10:33 UTC
Created attachment 9684 [details]
Version 2 of Patch

I implemented the changes described in comment 4.  Hope this helps.
Comment 10 Nemo 2012-07-26 19:43:22 UTC
(In reply to comment #8)
> In which case, I shall put it on my (rather long) todo list :)

Jarry1250, or now you can just commit it yourself? :)
Comment 11 Jarry1250 2012-07-26 20:08:59 UTC
Hmm, yes, probably could soonish.
Comment 12 Sumana Harihareswara 2012-12-09 17:57:05 UTC
(In reply to comment #9)
> Created attachment 9684 [details]
> Version 2 of Patch
> 
> I implemented the changes described in comment 4.  Hope this helps.

Thanks, Chris! Can you grab developer access https://www.mediawiki.org/wiki/Developer_access and commit the patch into our source control system (after any updating to work with trunk)?  Thanks!
Comment 13 Jarry1250 2012-12-09 19:48:03 UTC
"soonish" is such a vague term :P Thanks for the help Chris, I've turned your patch into a Gerrit changeset available for review:

https://gerrit.wikimedia.org/r/37685

All comments welcome.
Comment 14 Andre Klapper 2013-07-24 10:37:32 UTC
Patch in Gerrit needs rework - Jarry1250, do you plan to work on this (as you're set as assignee in this bug report?)
Comment 15 Gerrit Notification Bot 2013-10-30 12:50:51 UTC
Change 37685 had a related patch set uploaded by Krinkle:
(bug #20789) What links here pager falsely says "No pages link to"

https://gerrit.wikimedia.org/r/37685
Comment 16 Gerrit Notification Bot 2014-05-20 08:10:40 UTC
Change 37685 abandoned by Hashar:
Whatlinkshere: Pager incorrectly shows "No pages link here"

Reason:
Abandoning per Siebrand. Feel free to reopen if there is any interest in finishing this.

https://gerrit.wikimedia.org/r/37685

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


Navigation
Links