Last modified: 2010-05-15 15:32:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1622 - $wgUseCategoryBrowser = true create trailing '>' and add an unwanted category
$wgUseCategoryBrowser = true create trailing '>' and add an unwanted category
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
: testme
Depends on:
  Show dependency treegraph
Reported: 2005-03-02 20:14 UTC by iubito (Sylvain Machefert)
Modified: 2010-05-15 15:32 UTC (History)
2 users (show)

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


Description iubito (Sylvain Machefert) 2005-03-02 20:14:40 UTC
In my settings, I set
$wgUseCategoryBrowser = true;

I get a wonderful Category Browser on my pages :)

Just a few things.

My page has [[Catégorie:Maria Tanase]] (in French).
My wiki structure could be drawn like this

+-- TODO
+-- Pays
|   |
|   +-- Grèce
|   +-- Roumanie
|       |
|       +-- Maria Tanase
|       +--...
|   +--...
+-- Danse
+-- ...

Displaying an article in "Maria Tanase" shows :

Catégories de la page: Maria Tanase
Pays > Roumanie > Maria Tanase >

1) There is a trailing '>' (greater than) at the end of the 
2) There is an unespected "TODO" line. My article is *not* in 
TODO. If the CategoryBrowser wanted to show all categories, a 
lot of them are missing (Grèce, Danse...).

[21:18] <iubito> for the $wgUseCategoryBrowser, just one thing, 
it adds a trailing '>' that is no useful... Example : 
[21:18] <iubito> Catégories de la page: Maria Tanase  
[21:18] <iubito> TODO >  
[21:18] <iubito> Pays > Roumanie > Maria Tanase > 
[21:18] <Hashar> iubito> yup that s a bug :o)
Comment 1 Antoine "hashar" Musso (WMF) 2005-03-03 13:40:19 UTC
Fixed in REL1_4 and HEAD.
Comment 2 iubito (Sylvain Machefert) 2005-04-16 21:09:20 UTC
I still have the unwanted "TODO" category. Why ?
Is this because Maria Tanase has TODO ?
Agurida is an article in Maria Tanase category, but this article has not TODO, as said on the first line ''Catégories de la page...''

All articles in Maria Tanase category behave the same.

 Catégories de la page: Maria Tanase
 Pays > Roumanie > Maria Tanase
Comment 3 iubito (Sylvain Machefert) 2005-04-17 07:41:20 UTC
It's what I guessed :
if I remove [[Catégorie:TODO]] from Maria Tanase, Agurida and other articles in Maria Tanase category don't have the TODO.
Comment 4 iubito (Sylvain Machefert) 2005-05-01 05:06:56 UTC
Ignore comments #2 and #3, it seems to be partly fixed in 1.4.2

but there is still a problem.
Agurida is in category Maria Tanase

Maria Tanase is in category TODO,
and also in category Roumanie which is in category Pays

In the page I gave the URL, there is
Catégories de la page: Maria Tanase

Pays > Roumanie
TODO > Maria Tanase

That's better than what we had before, but there is a missing "Maria Tanase" in the path Pays > Roumanie > Maria Tanase
The 2nd path (TODO > Maria Tanase) is OK.
Comment 5 Antoine "hashar" Musso (WMF) 2005-06-27 00:07:39 UTC
Fixed in head. Thanks for the report.
Comment 6 Antoine "hashar" Musso (WMF) 2005-06-27 00:08:51 UTC
Forget me, wrong bug :(
Comment 7 Brion Vibber 2005-12-12 02:58:21 UTC
Is this still current?
Comment 8 iubito (Sylvain Machefert) 2005-12-12 06:34:25 UTC
Hi Brion

I don't know, I didn't upgrade to 1.5 due to a lot of little changes in my 1.4.4 code I'd lost in an upgrade...

I should try on a demo mediawiki 1.5 which has $wgUseCategoryBrowser = true

Category A
Category B is [[Category:A]]
Category C is [[Category:B]]
so we have one path A > B > C
Category B is also [[Category:D]]
so we have another path D > B > C
in 1.4.4, if Article is [[Category:C]], the category browser shows one complete path, and the other is incomplete (A > B > C and D).
If in 1.5 we have :
A > B > C and D > B > C, this bug is fixed.
If not, that's not huge, do what you want with this bug.

Is there a demo wiki using 1.5 and category browser ?
Comment 9 Chad H. 2008-12-04 19:09:14 UTC
Not sure when this was fixed, but it was at some point between 1.5 and now. WORKSFORME on trunk.

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