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

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

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine FoswikiAddress  
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 CopyrightStatement. Creative Commons License