You are here: Foswiki>Tasks Web>Item10943 (09 Nov 2011, PaulHarvey)Edit Attach

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

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: minor
Applies To: Engine
Component: FoswikiAddress
Branches:
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/Address.pm 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
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