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

           Summary: Time-dependent conditionals (#ifeq, #switch, etc.) can
                    leave link tables inconsistent
           Product: MediaWiki extensions
           Version: any
          Platform: All
               URL: http://commons.wikimedia.org/w/index.php?title=Commons:V
                    illage_pump&oldid=20274720#Cascading_protection_broken.3
                    F
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: ParserFunctions
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: nos...@vyznev.net


By using the conditional parser functions #ifeq, #ifexpr or #switch together
with #time (or with time-dependent magic words such as CURRENTDAY), a page can
be made to parse and render differently at different times.  However, the link
tables (pagelinks, imagelinks, templatelinks and categorylinks) will only
contain links that were present when the page was parsed.

This is closely related to bug 14404, but I'm filing this separately since the
proximate cause is different, and since I suspect they'll need separate fixes.

I particular, this can cause cascading protection to fail unexpectedly if such
time-dependent conditionals are used on the protected page.  Of course, the
workaround is to just not do that, but not all users may know that.  (And,
unfortunately, many of the pages most likely to need cascading protection are
also the ones most likely to benefit from time-dependent parsing.)


-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to