Last modified: 2014-02-27 18:50:19 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 T61082, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59082 - Searching for userpages of nonexistent users (or users with no userpage) should not forward you to their userpage with &go=Go
Searching for userpages of nonexistent users (or users with no userpage) shou...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-28 17:23 UTC by PiRSquared17
Modified: 2014-02-27 18:50 UTC (History)
3 users (show)

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


Attachments

Description PiRSquared17 2013-12-28 17:23:49 UTC
For example, [[Special:Search/User:global.js]] should return results like [1], not forward the searcher to a nonexistent page for a nonexistent user.

[1] https://en.wikipedia.org/w/index.php?title=Special%3ASearch&search=user%3Aglobal.js&fulltext=Search
Comment 1 Jesús Martínez Novo (Ciencia Al Poder) 2013-12-29 11:52:55 UTC
Yeah, I suggested that Bug 45255 may be the responsible of this, if non-existent user pages are now returning 200 responses instead of 404, maybe the search engine is affected by this, thinking that any user page exists and redirecting to it.

Although I'm not entirely sure if that's the problem, since now I see that such page returns a 404 response. But the thing is that doing the same search using another namespace prefix (with a page that doesn't exist) doesn't forward the browser to that page.
Comment 2 Nik Everett 2013-12-30 14:20:24 UTC
This behaviour looks like it stretches back to 2005.  I've added Bryan as a CC on this.

The relevant commit messages are:
commit 435ed6274eb2d7daf8681c3a16ab6883541c59a5
Author: Ævar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Date:   Sat Mar 26 23:30:53 2005 +0000

    * (bug 1398) patch by Thue Janus Kristensen that modifies the behaviour of the
      'Go' button, if an IP address is entered the search engine first checks if an
      article by that name exists, otherwise it goes to the user contributions list
      of that search engine ( this would catch en.wp.org/wiki/127.0.0.1 ), also,
      entering a valid username with the current namespace-3 + : prefix will go to
      the users page, regardless of whether it contains any text or not.

commit eb0489b5da4ee3a3e1824a1741bdf60fc67bf2a5
Author: Brion Vibber <brion@users.mediawiki.org>
Date:   Sun Mar 27 01:28:03 2005 +0000

    Fix minor issues missed in patch review:
    * Use getDbkey(), not getTitle(), when constructing new titles
    * Don't bother checking for existence of a user page on go; with the
    namespace prefix it's pretty clear what's meant, and the inconsistent
    behavior would be more confusing than illuminating.
Comment 3 PiRSquared17 2014-02-27 18:12:53 UTC
Brion, do you still think this is a good idea for nonexistent users?  Sometimes we want to search for text in the user namespace, not for a page with that exact title.
Comment 4 Brion Vibber 2014-02-27 18:23:28 UTC
In that case you'd need to go to the search page and explicitly enable 'User' in the searched namespaces, or else use some kind of magic indicator of which namespace you want to search in (I don't know offhand if that exists).

Simply typing a namespace name, colon, followed by some text will not search in that namespace -- it'll search for the text you gave including the namespace name all as a big search term.
Comment 5 Nik Everett 2014-02-27 18:50:19 UTC
The magic indicator that you are looking for things in the user namespace is to prefix the search with "user:".

PiRSquared, I know it isn't a great answer but you can skip the "go" behavior in a few ways:
1.  Drop a ~ between the namespace and the search term.  That is pretty cryptic.
2.  Wait for the little "containing... user:global.js" div to appear under the search box, hit down, then hit enter.
3.  Go directly to the search page and search in the box next to the blue search button but not the one in the top right.  You can get directly to the search page by going to /wiki/Special:Search or by hitting enter in the search box on the top left of any page while it is empty or by clicking on the magnifying glass in the same box while it is empty.

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


Navigation
Links