Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 40344 invoked from network); 26 Oct 2006 04:20:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 04:20:20 -0000 Received: (qmail 50976 invoked by uid 500); 25 Oct 2006 19:14:31 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 50887 invoked by uid 500); 25 Oct 2006 19:14:31 -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 50874 invoked by uid 99); 25 Oct 2006 19:14:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2006 12:14:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2006 12:14:18 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DC7837142C1 for ; Wed, 25 Oct 2006 12:13:17 -0700 (PDT) Message-ID: <24146616.1161803597899.JavaMail.root@brutus> Date: Wed, 25 Oct 2006 12:13:17 -0700 (PDT) From: "Daniel Fagerstrom (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Closed: (COCOON-1943) [Patch] Parameters in blocks-protocol URIs get decoded too early In-Reply-To: <32438240.1161770236540.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/COCOON-1943?page=all ] Daniel Fagerstrom closed COCOON-1943. ------------------------------------- Resolution: Fixed The patch is applied, thanks for the patch. For reference, the offtopic issue is discussed in http://marc.theaimsgroup.com/?t=116177650900001&r=1&w=2. > [Patch] Parameters in blocks-protocol URIs get decoded too early > ---------------------------------------------------------------- > > Key: COCOON-1943 > URL: http://issues.apache.org/jira/browse/COCOON-1943 > Project: Cocoon > Issue Type: Bug > Components: - Blocks Framework > Affects Versions: 2.2-dev (Current SVN) > Reporter: Alexander Klimetschek > Attachments: cocoon-blocks-fw-raw-encoded-URIs.patch > > > When you pass parameters in the query part of a block-protocol URI, eg. "block:super:/dosomething?param1=alpha¶m2=beta", and they include some encoded stuff, eg. "
" encoded as "%3Cbr/%3E", this will get decoded before the actual servlet request happens. This takes place in BlockConnection.parseBlockURI() when uri.getSchemeSpecificPart() is called, which will decode the string. Instead, one should call uri.getRawSchemeSpecificPart(), which is exactly what the patch does. > (A little bit Off-topic): The general point here is that I am calling a form that is handled in the super block. Since you cannot pass on request parameters from a POST call (that comes from the browser) to the other (super) block called via the blocks-protocol (because the only interface you have is the Source, where you can only pass information via the URI), you have to put all parameters in the uri. I have written a simple input module that creates a "param1=alpha¶m2=beta" string from another input module (preferrably request-param) so that you simply call: "block:super:/dosomething?{params-to-uri:request-param}". This might be integrated into Cocoon as a standard InputModule. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira