https://bugzilla.wikimedia.org/show_bug.cgi?id=33632

       Web browser: ---
             Bug #: 33632
           Summary: Categories within includeonly fails to update,
                    REVISIONYEAR/-MONTH might be involved
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Categories
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


A template at no.wikipedia uses REVISIONYEAR/-MONTH to generate a category
name, and the whole thing is wrapped in <includeonly>. The construct sometimes
fails and puts the article into an erroneous named category.

The template with the erroneous behaviour seems to be
http://no.wikipedia.org/w/index.php?title=Mal:Stubb&oldid=9289679

A later fix removes <includeonly> and uses {{#ifeq}} instead, and then only
puts articles from the main namespace into the category
http://no.wikipedia.org/w/index.php?title=Mal:Stubb&oldid=9945807

This is the difference between those two versions
http://no.wikipedia.org/w/index.php?title=Mal%3AStubb&action=historysubmit&diff=9945807&oldid=9289679

The erroneous category is
http://no.wikipedia.org/wiki/Kategori:Stubber_-00
Note that the name for this category is malformed as {{REVISIONYEAR}} and
{{REVISIONMONTH}} has not returned valid values.

A testcase to isolate some of the problems are on the pages
http://no.wikipedia.org/wiki/Bruker:Jeblad/revisionyear
http://no.wikipedia.org/wiki/Bruker:Jeblad/test-revisionyear
http://no.wikipedia.org/wiki/Bruker:Jeblad/test-revisionyear2
http://no.wikipedia.org/wiki/Kategori:Test_2012

First the page Bruker:Jeblad/test-revisionyear is made, then the
Bruker:Jeblad/revisionyear which acts as a template. At this point the page
test-revisionyear seems to have a valid category but the test page is not added
to the category. When the page Bruker:Jeblad/test-revisionyear2 is made it is
added to the category Kategori:Test_2012 as it should. The later is created
(edited) _after_ the template is made, while the former is created (edited)
before. The former should be updated through a worker I guess.

There are no testcase for the {{REVISIONYEAR}} and {{REVISIONMONTH}}

I wonder if there are several bugs that pops up simultaneously
1) REVISIONYEAR/-MONTH seems not to be defined _sometimes_, perhaps within
<includeonly> and/or the category construct
2) Changes in the template does not seem to initiate a full regeneration of the
article, at least sometimes, and it looks like a partially purge of some kind
3) It seems like a manual purge updates the article page after changes to the
template, and also the category link on the page, but in the category page the
article remains for a long time and it does not seem to be removed at all
4) A nulledit to the article page also updates the category link, and then a
reload of the category page will be without an entry for the said article

That should be all I have about this case.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to