Last modified: 2010-05-15 15:41:08 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 T9375, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7375 - Username Links are broken in lists of users
Username Links are broken in lists of users
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.7.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://any-install/wiki/Special:Listu...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-20 01:49 UTC by Patrick Lynch
Modified: 2010-05-15 15:41 UTC (History)
0 users

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


Attachments

Description Patrick Lynch 2006-09-20 01:49:34 UTC
I have an install of 1.7.1 that I have setup using mysql-server-5.0.22-1.FC5.1.
 I ran into a bug while adding users and checking my /wiki/Special:Listusers URL
where the usernames and therefore links were not showing up in the list.  I
tracked down the issue to be what I feel is a problem in the query.  I have
patched the issue and want you to verify my patch and let me know if this is
correct.  I couldn't figure out where the 'value' was being used in reference to
the query.  Thanks.


plynch@somedesk> diff -u mediawiki-1.7.1/includes/SpecialListusers.php
mediawiki-1.7.1patch/includes/SpecialListusers.php
--- mediawiki-1.7.1/includes/SpecialListusers.php       2006-07-08
22:45:27.000000000 -0700
+++ mediawiki-1.7.1patch/includes/SpecialListusers.php  2006-09-19
18:44:43.000000000 -0700
@@ -128,7 +128,7 @@

                $userspace = NS_USER;
                $sql = "SELECT 'Listusers' as type, $userspace AS namespace,
user_name AS title, " .
-                       "user_name as value, user_id, COUNT(ug_group) as
numgroups " .
+                       "user_real_name as value, user_id, COUNT(ug_group) as
numgroups " .
                        "FROM $user ".
                        "LEFT JOIN $user_groups ON user_id=ug_user " .
                        $this->userQueryWhere( $dbr ) .
Comment 1 Patrick Lynch 2006-09-20 02:24:17 UTC
Ok.. scratch that.  Turns out to be a bug in the returned results from mysql
version I am running.  Maybe I need to look into what is going one with mysql.
Comment 2 Rotem Liss 2006-09-20 09:45:19 UTC
Closed the bug, reopen it if you see that it *is* a problem in MediaWiki.

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


Navigation
Links