Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 44433 invoked from network); 4 Feb 2004 15:15:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Feb 2004 15:15:24 -0000 Received: (qmail 3907 invoked by uid 500); 4 Feb 2004 15:13:30 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 3840 invoked by uid 500); 4 Feb 2004 15:13:29 -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 3735 invoked from network); 4 Feb 2004 15:13:28 -0000 Received: from unknown (HELO kerberos) (62.116.51.59) by daedalus.apache.org with SMTP; 4 Feb 2004 15:13:28 -0000 Received: From mail.at.efp.cc ([62.116.51.60]) by kerberos (WebShield SMTP v4.5 MR1a); id 107590760844; Wed, 4 Feb 2004 16:13:28 +0100 Received: from WRPO (wrpo.at.intra.efp.cc [194.107.80.18]) by mail.at.efp.cc (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id i14FDQo27435; Wed, 4 Feb 2004 16:13:27 +0100 From: "Reinhard Poetz" To: , Subject: RE: variable substitution in @type attributes Date: Wed, 4 Feb 2004 16:12:20 +0100 Message-ID: <001001c3eb31$49e07ec0$1e01a8c0@WRPO> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <200402041606.32342.ntoper@jouve.fr> 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 From: Nicolas Toper [mailto:ntoper@jouve.fr]=20 > True, this is a big security hole... >=20 > Well, for the exception, where is the difference btw calling=20 > a non existant=20 > component and calling a non existant resource (like a file)?? >=20 > But it seems hard use... At the same time, this'd be cool for=20 > readers (like=20 > gif, jpeg,etc..)=20 Cool yes, but IMO too much magic. I would be -1 on changing this. With explicit namings the sitemap remains easily readable. -- Reinhard >=20 > What do you think? >=20 > Le Mercredi 04 F=E9vrier 2004 15:58, Carsten Ziegeler a =E9crit : > > I think one major point is security or more precise: to detect=20 > > possible problems early on. If you now use a wrong type=20 > information,=20 > > which means address a component that doesn't exist, you get an=20 > > exception immediately on startup. So, you know very early that your=20 > > application is not correct. > > > > With a dynamic type attribute you defer this to a much later point=20 > > which might be dangerous as well and very hard to find. > > > > Carsten > > > > > -----Original Message----- > > > From: news [mailto:news@sea.gmane.org]On Behalf Of Jorg Heymans > > > Sent: Wednesday, February 04, 2004 3:51 PM > > > To: dev@cocoon.apache.org > > > Subject: Re: variable substitution in @type attributes > > > > > > > > > Vadim, that post is from 2001. > > > > > > The arguments are: > > > - it affects the cache ->is this still relevant for the rewritten=20 > > > cache mechanism in 2.1+ ? > > > - Flexibility syndrome ->point taken > > > - It's a reactor pattern forcing distribution of control and=20 > > > increasing the number of contracts between the different=20 > contexts.=20 > > > ->not sure what is meant there. Does he mean that selecting a=20 > > > component during pipeline setup would not be the sole decision of=20 > > > the sitemap anymore? Which contexts are meant here? > > > > > > I can understand the pipeline overhead in looking through=20 > the list=20 > > > of all components everytime for one that matches the=20 > parameter, but=20 > > > this could be documented and left to the user to decide what he=20 > > > prefers most. > > > > > > > > > Please note that I am not trying to advocate this change, just=20 > > > looking to up my knowledge on cocoon another nudge. > > > > > > thanks > > > Jorg > > > > > > Vadim Gritsenko wrote: > > > > Jorg Heymans wrote: > > > >> Carrying the discussion over from users@ > > > >> Why is variable substituion not allowed in @type attributes ? > > > > > > > > Archives have it. > > > > > > > >=20 > http://marc.theaimsgroup.com/?l=3Dxml-cocoon-dev&m=3D9886706782656 5&w=3D > > > 2 > > > http://marc.theaimsgroup.com/?l=3Dxml-cocoon-dev&m=3D98867067826565&w=3D2= > > > > > > Vadim