You are here: Foswiki>Tasks Web>Item10559 (17 Dec 2011, GeorgeClark)Edit Attach

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

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Extension
Component: TablePlugin
Branches:
Reported By: PaulHarvey
Waiting For:
Last Change By: GeorgeClark
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 distro:042d3b4c00e0
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy