Foswiki on GitHub is open for business! Next release meeting: Monday September 1, 1300Z

Item10559: Use of uninitialized value in numeric comparison (...) at ... Core.pm line 1421

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Extension TablePlugin  
Getting a lot of this in my logs (trunk):
Use of uninitialized value in numeric comparison (<=>) at /path/to/core/lib/Foswiki/Plugins/TablePlugin/Core.pm line 1421

-- PaulHarvey - 28 Mar 2011

Updated summary - <=> breaks rss feed.

-- GeorgeClark - 29 Mar 2011

We are getting large numbers of these on Foswiki.org as well. It appears that the numeric url params are not validated for numeric. We are getting 80,000+ errors a day. Seems to be caused by the URL parameters sort, sortcol, table and up not being validated as provided, and numeric (or off for sort=.

Argument "" isn't numeric in numeric gt (>) at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 539.
Argument "" isn't numeric in numeric eq (==) at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 620.
Argument "" isn't numeric in array element at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 756.
Argument "" isn't numeric in array element at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 761.
Argument "" isn't numeric in array element at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 762.
Argument "" isn't numeric in array element at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 763.
Argument "" isn't numeric in array element at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 780.
Argument "" isn't numeric in numeric lt (<) at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 1412.
Argument "" isn't numeric in numeric eq (==) at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 1487.
Argument "" isn't numeric in numeric eq (==) at /usr/home/foswiki.org/public_html/lib/Foswiki/Plugins/TablePlugin/Core.pm line 1541.

-- GeorgeClark - 21 Sep 2011
 

ItemTemplate edit

Summary Use of uninitialized value in numeric comparison (...) at ... Core.pm line 1421
ReportedBy PaulHarvey
Codebase 1.1.3, trunk
SVN Range
AppliesTo Extension
Component TablePlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:12592
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r6 - 17 Dec 2011, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License