Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 91843 invoked from network); 28 Jun 2006 07:56:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2006 07:56:30 -0000 Received: (qmail 19707 invoked by uid 500); 28 Jun 2006 07:56:28 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 19651 invoked by uid 500); 28 Jun 2006 07:56:28 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 19640 invoked by uid 99); 28 Jun 2006 07:56:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2006 00:56:28 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.216.81.147] (HELO mail.otego.com) (195.216.81.147) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2006 00:56:27 -0700 Received: (qmail 12145 invoked from network); 28 Jun 2006 09:56:04 +0200 Received: from 192.168.222.3 by zeus (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.88.2/1428. perlscan: 1.25st. Clear:RC:1(192.168.222.3):. Processed in 0.197315 secs); 28 Jun 2006 07:56:04 -0000 Received: from unknown (HELO localhost) (192.168.222.3) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 28 Jun 2006 09:56:04 +0200 Date: Wed, 28 Jun 2006 09:55:59 +0200 (CEST) From: Giacomo Pati Sender: giacomo@lapgp.otego.com To: dev@cocoon.apache.org Subject: Re: svn commit: r417489 - /cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/matching/WildcardURIMatcherTestCase.java In-Reply-To: Message-ID: References: <20060627153935.EB6421A983A@eris.apache.org> X-GPG-FINGRPRINT: 9E66 40E0 0A9C B37F E29E 5816 2CD7 49BD 98E3 5590 X-GPG-PUBLIC_KEY: http://pks.gpg.cz:11371/pks/lookup?op=get&search=0x2CD749BD98E35590 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 28 Jun 2006, Andreas Hartmann wrote: > Date: Wed, 28 Jun 2006 09:21:54 +0200 > From: Andreas Hartmann > Reply-To: dev@cocoon.apache.org > To: dev@cocoon.apache.org > Subject: Re: svn commit: r417489 - > /cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/matching/Wildcard > URIMatcherTestCase.java > > Giacomo Pati wrote: >> On Tue, 27 Jun 2006, andreas@apache.org wrote: >> >> > Date: Tue, 27 Jun 2006 15:39:35 -0000 >> > From: andreas@apache.org >> > Reply-To: dev@cocoon.apache.org >> > To: cvs@cocoon.apache.org >> > Subject: svn commit: r417489 - >> > /cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/matching/Wildcard >> > >> > URIMatcherTestCase.java >> > >> > Author: andreas >> > Date: Tue Jun 27 08:39:35 2006 >> > New Revision: 417489 >> > >> > URL: http://svn.apache.org/viewvc?rev=417489&view=rev >> > Log: >> > Added failing test to WildcardURIMatcherTestCase: **/*.html results in >> > wrong wildcard replacements >> >> I'll have a look at it tomorrow. > > That would be great, thanks a lot! > > I took a quick look at WildcardMatcherHelper.Matcher.match(), but it > looked a little to complex. I guess the problem is that the double > asterisk is not greedy enough, but I have no idea how to fix it :) Yes, it's exaclty that. I've changed the greedyness of the '**' wildcard with the consequence that other test cases now won't deliver same results (all having multiple '**' wildcards, and thus have changed them accordingly). > I wondered, though, that the Javadocs say that the method works from > the end to the start, but it looks like it actually works from the > start to the end - maybe it's related to that? Hmm.. I thought I've changed all the javadocs accordingly. The first algorithm was processing from end to start but this as shown to be more complex in the end so I've change it from start to end. I'll checck the javadocs again. Tnanks. Ciao Giacomo - -- Giacomo Pati Otego AG, Switzerland - http://www.otego.com Orixo, the XML business alliance - http://www.orixo.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEojYRLNdJvZjjVZARAnb2AKDVR+Rm11Ir6eWkTC/6gGBVkESguACgvOuu HN/hL5O/xrLB8PrMIyA8Nu4= =zZur -----END PGP SIGNATURE-----