You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <vg...@hns.com> on 2000/09/08 18:45:15 UTC

[C2] Problem with zero-length matcher

Hi,

There is a IndexArrayOutOfBounds exception when trying to create
matcher for empty string, like:
   <map:match pattern="">
    <map:redirect-to resource="welcome"/>
   </map:match>

Patch is attached.

Sincerely,
Vadim


Re: [C2] Problem with zero-length matcher

Posted by Giacomo Pati <Gi...@pwr.ch>.
Vadim Gritsenko wrote:
> 
> Hi,
> 
> There is a IndexArrayOutOfBounds exception when trying to create
> matcher for empty string, like:
>    <map:match pattern="">
>     <map:redirect-to resource="welcome"/>
>    </map:match>
> 
> Patch is attached.

Thanks, will apply it right away.

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1  856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1  856 2201
Hintereichenstrasse 7                     Mobil: +41 (0)78 759 7703 
CH-8166 Niederweningen                    Mailto:Giacomo.Pati@pwr.ch 
                                          Web:   http://www.pwr.ch