Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 98081 invoked from network); 21 Oct 2003 07:38:10 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Oct 2003 07:38:10 -0000 Received: (qmail 79368 invoked by uid 500); 21 Oct 2003 07:37:43 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 79327 invoked by uid 500); 21 Oct 2003 07:37:43 -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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 79314 invoked from network); 21 Oct 2003 07:37:42 -0000 Received: from unknown (HELO mail.s-und-n.de) (212.8.217.2) by daedalus.apache.org with SMTP; 21 Oct 2003 07:37:42 -0000 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id B4993E288D for ; Tue, 21 Oct 2003 09:37:54 +0200 (CEST) Received: from hw0386 ([10.10.2.46]) by notes.sundn.de (Lotus Domino Release 5.0.8) with SMTP id 2003102109375385:51781 ; Tue, 21 Oct 2003 09:37:53 +0200 From: "Carsten Ziegeler" To: Subject: RE: [RT] Rethinking the SourceResolver concept Date: Tue, 21 Oct 2003 09:40:41 +0200 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <3F940244.1080106@anyware-tech.com> Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 21.10.2003 09:37:53, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 21.10.2003 09:37:54, Serialize complete at 21.10.2003 09:37:54 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: > > I am strongly -1 to resolve relative URIs relatively to the position of > a component in the container hierarchy. > I totally agree here. > IMO, we must keep the current behaviour. This allows all components to > automatically adapt to the mount point of the current sitemap (or > block). And if a component doesn't support mountpoint-relative URIs, > then its methods should use a Source object instead of a String, thus > requiring the caller to resolve the URI. > > Don't know if I was clear, but I think changing the resolution behaviour > will cause a lot more harm than good. And if a global ThreadLocal is the > price to pay, let's pay it. > Yes, that's true. But to be honest, I'm more and more thinking that this "feature" is doing to much in the background. Remember the thread about the "automatically conversion from html to xml" where I was the only one liking this nice feature and everyone else was scared to death by it (ok, a little bit exaggerating here). I now tend more and more that this is here the same case. If I want to write a "global" component that resolves relative to the current sitemap than I should pass a Source object as a parameter to this component and not the relative url. Anyway, I agree, that changing this behaviour now is out of question, so let's leave it as it is :) I refactored the whole thing for 2.2 and as soon as 2.2 is runnable I can finish that. Carsten