Return-Path: Delivered-To: apmail-tapestry-commits-archive@minotaur.apache.org Received: (qmail 41026 invoked from network); 23 Feb 2010 19:38:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2010 19:38:49 -0000 Received: (qmail 83088 invoked by uid 500); 23 Feb 2010 19:38:49 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 83058 invoked by uid 500); 23 Feb 2010 19:38:49 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 82945 invoked by uid 99); 23 Feb 2010 19:38:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 19:38:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 19:38:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C452C29A001B for ; Tue, 23 Feb 2010 11:38:28 -0800 (PST) Message-ID: <1268308506.469421266953908802.JavaMail.jira@brutus.apache.org> Date: Tue, 23 Feb 2010 19:38:28 +0000 (UTC) From: "Howard M. Lewis Ship (JIRA)" To: commits@tapestry.apache.org Subject: [jira] Assigned: (TAP5-961) ComponentEventLinkEncoderMethodAdvice#rewriteIfNeeded drops parameters when rewriting links. In-Reply-To: <466297700.1262115569400.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TAP5-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Howard M. Lewis Ship reassigned TAP5-961: ----------------------------------------- Assignee: Howard M. Lewis Ship > ComponentEventLinkEncoderMethodAdvice#rewriteIfNeeded drops parameters when rewriting links. > -------------------------------------------------------------------------------------------- > > Key: TAP5-961 > URL: https://issues.apache.org/jira/browse/TAP5-961 > Project: Tapestry 5 > Issue Type: Bug > Components: tapestry-core > Affects Versions: 5.1.0.5 > Reporter: Richard Bolkey > Assignee: Howard M. Lewis Ship > Attachments: tap5-961.patch > > > When a link is rewritten that contains parameters, the parameter information is not passed along to the newly created link. This creates a problem, for example, when the activation context "t:ac" is specified as a parameter in event links. > Link rewriteIfNeeded(Link link, URLRewriteContext context) > { > Link newLink = null; > SimpleRequestWrapper fakeRequest = new SimpleRequestWrapper(request, link.toAbsoluteURI()); > Request rewritten = urlRewriter.processLink(fakeRequest,context); > // if the original request is equal to the rewritten one, no > // rewriting is needed > if (fakeRequest != rewritten) > { > final String originalServerName = request.getServerName(); > final String rewrittenServerName = rewritten.getServerName(); > boolean absolute = originalServerName.equals(rewrittenServerName) == false; > final String newPath = rewritten.getPath(); > String newUrl = absolute ? fullUrl(rewritten) : newPath; > newLink = new LinkImpl(newUrl, false, false, response, null); > (edit: ** newLink needs parameter information specified here) > } > return newLink; > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.