From b3b728d52c5ec7c673554dd8ec371229aa19a4ec Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 21 Sep 2016 09:53:14 +0200 Subject: [PATCH] WrappedRequest: Don't use deprecated ServletRequestWrapper#realPath Change-Id: I268e66d2299a1a12f7ae44b67a6b947339038245 Signed-off-by: David Pursehouse --- .../src/org/eclipse/jgit/http/server/glue/WrappedRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7f8da7c44..b702c0748 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