From: David Pursehouse Date: Wed, 21 Sep 2016 07:53:14 +0000 (+0200) Subject: WrappedRequest: Don't use deprecated ServletRequestWrapper#realPath X-Git-Tag: v4.6.0.201612231935-r~107 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3b728d52c5ec7c673554dd8ec371229aa19a4ec;p=jgit.git WrappedRequest: Don't use deprecated ServletRequestWrapper#realPath Change-Id: I268e66d2299a1a12f7ae44b67a6b947339038245 Signed-off-by: David Pursehouse --- diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java index 7f8da7c440..b702c07486 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java @@ -72,7 +72,7 @@ public class WrappedRequest extends HttpServletRequestWrapper { @Override public String getPathTranslated() { final String p = getPathInfo(); - return p != null ? getRealPath(p) : null; + return p != null ? getSession().getServletContext().getRealPath(p) : null; } @Override