From: <bra...@us...> - 2007-10-17 21:26:28
|
Revision: 2057 http://archive-access.svn.sourceforge.net/archive-access/?rev=2057&view=rev Author: bradtofel Date: 2007-10-17 14:26:32 -0700 (Wed, 17 Oct 2007) Log Message: ----------- BUGFIX: somehow was not removing context deploy name from incoming requests to map to the correct AccessPoint when deploying as non-ROOT context. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/RequestMapper.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/RequestMapper.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/RequestMapper.java 2007-10-15 22:01:17 UTC (rev 2056) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/RequestMapper.java 2007-10-17 21:26:32 UTC (rev 2057) @@ -77,11 +77,10 @@ private String getContextID(HttpServletRequest request) { String requestPath = request.getRequestURI(); -// String absolutePath = servletContext.getRealPath(requestPath); -// File tmpFile = new File(absolutePath); -// if(tmpFile.exists()) { -// return null; -// } + String contextPath = request.getContextPath(); + if(requestPath.startsWith(contextPath)) { + requestPath = requestPath.substring(contextPath.length()); + } String collection = ""; if(requestPath.startsWith("/")) { int secondSlash = requestPath.indexOf("/",1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |