cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
You are here: Foswiki>Tasks Web>Item11000 (17 Dec 2011, GeorgeClark)Edit Attach

Item11000: Foswiki::Time shouldn't be trying to convert undefined $epochSeconds

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: patch
Applies To: Engine
Component: FoswikiTime
Branches:
Reported By: PaulHarvey
Waiting For: PaulHarvey
Last Change By: GeorgeClark
   Foswiki::Time::formatTime(undef) called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/Meta.pm line 1557
   Foswiki::Meta::getRev1Info('Foswiki::Meta=HASH(0x3cb1008)', 'createdate') called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/Plugins/MongoDBPlugin.pm line 278
   Foswiki::Plugins::MongoDBPlugin::_updateTopic('System', 'VarNEXUSTREES', 'Foswiki::Meta=HASH(0x3cb1008)', 'HASH(0x3af6c48)') called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/Plugins/MongoDBPlugin.pm line 221
   Foswiki::Plugins::MongoDBPlugin::updateWebCache('System', 1) called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/Plugins/MongoDBPlugin.pm line 182
   Foswiki::Plugins::MongoDBPlugin::_update('Foswiki=HASH(0x1a95778)', 'MongoDBPlugin', 'update', 'Foswiki::Response=HASH(0x1a7f700)') called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/Func.pm line 665
   Foswiki::Func::__ANON__('Foswiki=HASH(0x1a95778)', 'MongoDBPlugin', 'update', 'Foswiki::Response=HASH(0x1a7f700)') called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/UI/Rest.pm line 249
   Foswiki::UI::Rest::rest('Foswiki=HASH(0x1a95778)') called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/UI.pm line 316
   Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 416
   eval {...} called at /usr/share/perl5/Error.pm line 408
   Error::subs::try('CODE(0x137fd30)', 'HASH(0x1a9d2d0)') called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/UI.pm line 435
   Foswiki::UI::_execute('Foswiki::Request=HASH(0x1a7fdf0)', 'CODE(0x1a7fa48)', 'rest', 1, 'command_line', 1) called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/UI.pm line 274
   Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x1a7fdf0)') called at /usr/local/src/wiki.foo.org/core/lib/Foswiki/Engine/CLI.pm line 53
   Foswiki::Engine::CLI::run('Foswiki::Engine::CLI=HASH(0x142f7d0)') called at bin/rest line 29.

I'm not sure whether this affects release branch, but I'm adding ASSERTs there too.

-- PaulHarvey - 25 Jul 2011

needs a test with a cooked TOPICINFO that lacks a date key

-- PaulHarvey - 27 Jul 2011

Is this fixed? Should it be documented in 1.1.4? Trunk?

-- GeorgeClark - 03 Oct 2011
 

ItemTemplate edit

Summary Foswiki::Time shouldn't be trying to convert undefined $epochSeconds
ReportedBy PaulHarvey
Codebase trunk
SVN Range
AppliesTo Engine
Component FoswikiTime
Priority Normal
CurrentState Closed
WaitingFor PaulHarvey
Checkins distro:6c2cb8046b6a distro:cce6d72970ca distro:2655d72071af distro:16a35ee87c3c
TargetRelease patch
ReleasedIn n/a
Topic revision: r9 - 17 Dec 2011, GeorgeClark - This page was cached on 21 Jun 2018 - 23:50.

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