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>Item10943 (09 Nov 2011, PaulHarvey)Edit Attach

Item10943: Chaining method calls onto FoswikI::Address->new() weirdness

Priority: Normal
Current State: Closed
Released In: n/a
Target Release: minor
Applies To: Engine
Component: FoswikiAddress
Reported By: PaulHarvey
Waiting For:
Last Change By: PaulHarvey
Sven saw it on IRC:
F::A->new(web=>'Main', topic=>'WebHome')->web() goes boom ... * Can't use an undefined value as an ARRAY reference at /home/sven/src/foswiki/core/lib/Foswiki/ line 1123

-- PaulHarvey - 06 Jul 2011

Hi Sven,

I updated tests, added a new test with the exact example you provided, and added some more ASSERTs - but it still doesn't fail for me.

Also updated doc to avoid use of webpath (use web instead).

Also removed unnecessary BEGIN block.

-- PaulHarvey - 06 Jul 2011

The new test is AddressTests::test_chain_new_web

-- PaulHarvey - 06 Jul 2011

There is some work in github I need to get merged into svn.

-- PaulHarvey - 21 Sep 2011

I think this is done

-- PaulHarvey - 09 Nov 2011
Topic revision: r19 - 09 Nov 2011, PaulHarvey - This page was cached on 22 Mar 2018 - 14:10.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License