Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2913A1106F for ; Sun, 6 Jul 2014 12:18:53 +0000 (UTC) Received: (qmail 20565 invoked by uid 500); 6 Jul 2014 12:18:52 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 20482 invoked by uid 500); 6 Jul 2014 12:18:52 -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 20471 invoked by uid 99); 6 Jul 2014 12:18:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2014 12:18:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.192.47 as permitted sender) Received: from [209.85.192.47] (HELO mail-qg0-f47.google.com) (209.85.192.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2014 12:18:49 +0000 Received: by mail-qg0-f47.google.com with SMTP id q108so2747772qgd.34 for ; Sun, 06 Jul 2014 05:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gnOfBP6Qhe4mOcK0vz9Az94e6q/I+7PrC+HIFLcg8WE=; b=wb1QB9K9fiWuKYc5LzW1eu4Al4AJQoY/J6+KWNfrzrwBZPA18b3YVWnVbClMZU8NrM kKWof1XmXCkIiC/s2RlWJdPEsBCjhZWrC7Ne0FXZ9YfbwvaFFi1t3AXY2i0PfXHDrWBF PBT0CJFajURH/gixRsmxFgOpyeQQoHavLCXfkYtBVUNhcWA2mNoxBpnskrgdYAwtpe3n mTo5BVgv6SIkJO22ibZFdXAPGiK0jjJc4qSA++6xQXhneuhR098Q853xUIq+iSyhVIcp 9iiS0yDqdOU0Jq7HJ7LDjs1gWjFCAnKSNHOExmXrG550Ku1Y4NqSP1Lp2yHgvgc3zA7F 8Bnw== MIME-Version: 1.0 X-Received: by 10.224.112.131 with SMTP id w3mr39194254qap.68.1404649105005; Sun, 06 Jul 2014 05:18:25 -0700 (PDT) Received: by 10.140.85.147 with HTTP; Sun, 6 Jul 2014 05:18:24 -0700 (PDT) In-Reply-To: <20140704203538.98FC923888D7@eris.apache.org> References: <20140704203538.98FC923888D7@eris.apache.org> Date: Sun, 6 Jul 2014 16:18:24 +0400 Message-ID: Subject: Re: svn commit: r1607936 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/catalina/core/ApplicationHttpRequest.java webapps/docs/changelog.xml From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org 2014-07-05 0:35 GMT+04:00 : > Author: markt > Date: Fri Jul 4 20:35:37 2014 > New Revision: 1607936 > > URL: http://svn.apache.org/r1607936 > Log: > When the current PathInfo is modified as a result of dispatching a request, ensure that a call to HttpServletRequest.getPathTranslated() returns a value that is based on the modified PathInfo. > > Modified: > tomcat/tc7.0.x/trunk/ (props changed) > tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/ApplicationHttpRequest.java > tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml > > Propchange: tomcat/tc7.0.x/trunk/ > ------------------------------------------------------------------------------ > Merged /tomcat/trunk:r1607930-1607931 > > Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/ApplicationHttpRequest.java > URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/ApplicationHttpRequest.java?rev=1607936&r1=1607935&r2=1607936&view=diff > ============================================================================== > --- tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/ApplicationHttpRequest.java (original) > +++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/ApplicationHttpRequest.java Fri Jul 4 20:35:37 2014 > @@ -451,6 +451,20 @@ class ApplicationHttpRequest extends Htt > > > /** > + * Override the getPathTranslated() method of the wrapped > + * request. > + */ > + @Override > + public String getPathTranslated() { > + if (getPathInfo() == null) { > + return null; > + } > + > + return getServletContext().getRealPath(getPathInfo()); According to recent r1607935, the getServletContext() method may return null, causing an NPE here. > + } > + --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org