Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 61771 invoked from network); 23 Aug 2006 21:22:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2006 21:22:28 -0000 Received: (qmail 4309 invoked by uid 500); 23 Aug 2006 21:22:24 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 4213 invoked by uid 500); 23 Aug 2006 21:22:24 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 4195 invoked by uid 99); 23 Aug 2006 21:22:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 14:22:24 -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 [207.149.241.23] (HELO caddy.edworks.com) (207.149.241.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 14:22:23 -0700 Received: from [192.168.1.16] (c-24-20-133-214.hsd1.mn.comcast.net [24.20.133.214]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by caddy.edworks.com (Postfix) with ESMTP id 24AD86636A5; Wed, 23 Aug 2006 14:19:06 -0700 (PDT) In-Reply-To: <44ECC313.9080302@rowe-clan.net> References: <4B79B82F-6013-45D7-97C1-ECEE4995302D@apache.org> <44ECB980.5000707@gmail.com> <44ECC313.9080302@rowe-clan.net> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <034D057E-D44D-4526-9750-55EE06ECAB58@apache.org> Cc: Jean-frederic Clere , remm@apache.org, Tomcat Developers List Content-Transfer-Encoding: 7bit From: James Berry Subject: Re: parameters in URL path segments Date: Wed, 23 Aug 2006 14:22:01 -0700 To: "William A. Rowe, Jr." X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi William, On Aug 23, 2006, at 2:05 PM, William A. Rowe, Jr. wrote: > James Berry wrote: >> >> My response is that the tomcat should be completely blind to >> "parameters". Basically, to Tomcat's perspective, they don't exist. >> There is nothing any more special about "this;biz=bar" than >> "this,biz=bar" or "this-biz-bar". > > But, of course, your access control does call out a segment this/, > then the segment this;biz=bar/ would escape that access control, > so in some ways it is *quite* special; parameters are extra metadata. Perhaps I'm not understanding you. Yes, in this case the segment name should be "this;biz=bar" and not "this". If there were access control on segment "this" then "this;biz=bar" should not follow that access control. In what way, and why, does "this;biz=bar" escape access control any more than "this-funny-name" would? If it was "this,biz=bar" would it? > >> Tomcat should be blind to the very existence of parameters because it >> doesn't place any meaning on them. > > I agree that an application could add meaning to a parameter, but do > consider the first rule of URI namespace which is that each and every > URI should be canonical and unique. Returning the same 200 OK result > with the same document for everything under /abuseme means that a > crawler can end up with /abuseme/1 /abuseme/2 /abuseme/3 ... in all > sorts of nasty recursive situations. Again, I'm not following you, perhaps. I can certainly do that today, by passing all sorts of information in pathinfo following any url. > Because Tomcat and Apache are blind to parameters, the connector - > should- > reject them. When Tomcat/Apache are able to treat your "this;biz=bar" > example the same as "this" for the purpose of access control, then > they > can be enabled in an opaque manner that lets the application determine > their meaning and context. So maybe this is the crux of it. Why/where is it that "this;biz=bar" cannot be treated the same for the purposes of access control as "this"? The URL spec says that these are equally valid, and that "this,biz=bar" is equally valid (and suggests too that it might also be used for passing parameters) but to my understanding, that should be no concern of tomcat's. James --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org