TitleReferring Pages Plugin Dont Write Noboby After Filtering
Date30-Jun-2006 11:03:49 EEST
Version2.4.6
SubmitterFrançois Burtin
Bug criticalityCosmeticBug
Browser versionFF
Bug statusClosedBug
PageProvider useddefault
Servlet ContainerTomcat5.5
Operating SystemXP
URL
Java version1.5

In ReferringPagesPlugin, when there's no referrers, the plugin writes ...nobody
To work, this plugin :

  1. gets all referers (...refmgr.findReferrers...)
  2. then :
    1. filters them if there're any
    2. else print ...nobody

But if you have referrers before filtering but none after filtering, it will write...nothing. Is it really a bug?

To have ...nobody after filtering, instead of else (at line 90), I put if( links == null || links.size() == 0 )

Here's the code :

            ...
            Collection   links  = refmgr.findReferrers( page.getName() );
            ...

            ...
            if( links != null && links.size() > 0 )
            {
                ...
                filtering and more
                ...
            }
            else    <--------------------------Here            
            {
                wikitext = "...nobody";
            }

Fixed in 2.4.31

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-4) was last changed on 05-Aug-2006 15:25 by Janne Jalkanen