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

           Summary: generateSitemap.php neglects newlines for unpopulated
                    namespaces
           Product: MediaWiki
           Version: 1.17-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: easy
          Severity: trivial
          Priority: Normal
         Component: Maintenance scripts
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: jida...@jidanni.org
                CC: innocentkil...@gmail.com


Gentlemen, let us observe what happens to the output one sees in reports
made to STDOUT (not the sitemaps themselves) by generateSitemap.php when
not all of the e.g.,
>$wgSitemapNamespaces=array(NS_MAIN,NS_PROJECT,NS_TEMPLATE_TALK,NS_HELP_TALK,NS_CATEGORY_TALK,NS_USER);
in ones LocalSettings.php are populated:

>0 ()   /home/jidanni/mediawiki/sitemap-mwabj-NS_0-0.xml.gz
>4 (ABJ)11 (Template talk)13 (Help talk)15 (Category talk)2 (User)      
>/home/jidanni/mediawiki/sitemap-mwabj-NS_2-0.xml.gz

The problem is if there are no items to print for a given namespace, the line
> $this->output( "\t$this->fspath$filename\n" );
will not fire, thus no "\n" will get printed. Thus the next line just
gets stuck upon the first, garbling the report!

-- 
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