Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80AAC17622 for ; Wed, 14 Jan 2015 06:59:42 +0000 (UTC) Received: (qmail 34921 invoked by uid 500); 14 Jan 2015 06:59:34 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 34879 invoked by uid 500); 14 Jan 2015 06:59:34 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 34869 invoked by uid 99); 14 Jan 2015 06:59:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2015 06:59:34 +0000 Date: Wed, 14 Jan 2015 06:59:34 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (WW-4448) Parameters are not encoded by ServletRedirectAction before checking for valid URI 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/WW-4448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart updated WW-4448: ------------------------------ Fix Version/s: 2.3.x > Parameters are not encoded by ServletRedirectAction before checking for valid URI > --------------------------------------------------------------------------------- > > Key: WW-4448 > URL: https://issues.apache.org/jira/browse/WW-4448 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions > Affects Versions: 2.3.20 > Reporter: Mitth'raw'nuruodo > Labels: encoding, redirect, url > Fix For: 2.3.x > > > WW-4187 changed ServletRedirectResult to use java.net.URI to check whether a redirect URL is actually a path. However, it does not encode parameters first, which will often result in a URL being deemed invalid (eg if one of the parameters contains spaces) and thus being treated as a path. > Where I work, we actually don't want parameters to be appended to our absolute redirects at all, but I can't see a way to disable this...DefaultResultFactory doesn't seem to be configurable. -- This message was sent by Atlassian JIRA (v6.3.4#6332)