This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
TitleReferringPagesPluginDontWriteNobobyAfterFiltering
Date30-Jun-2006 11:03:49 EEST
Version2.4.6
SubmitterFran├žois Burtin
Bug criticalityCosmeticBug
Browser versionFF
Bug statusOpenBug
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";
            }

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 01-Jul-2006 12:22 by Janne Jalkanen.