[DS-493] Url in browser is incorrect after login

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4863 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Ben Bosman
2010-04-08 12:44:12 +00:00
parent 25bf35fe80
commit 616665c12e
3 changed files with 14 additions and 1 deletions

View File

@@ -564,8 +564,12 @@ public class AuthenticationUtil
// Return the path for which this request belongs too. Only urls
// for this path may be resumed.
if (interruptedRequest.getServletPath() == null || interruptedRequest.getServletPath().length() == 0) {
return interruptedRequest.getActualPath();
} else {
return interruptedRequest.getServletPath();
}
}
// No request was interrupted.
return null;

View File

@@ -118,6 +118,14 @@ public class RequestInfo
return this.servletPath;
}
/**
* Return the servlet path that this request is for.
*/
public String getActualPath()
{
return this.pathInfo + ((queryString == null || queryString.length() == 0) ? "" : "?"+queryString);
}
/**
* Wrap an incoming request to make it look like the request that the
* constructor was called with

View File

@@ -21,6 +21,7 @@
(Ben Bosman)
- [DS-538] restricted items are being returned in OAI GetRecord method while using harvest.includerestricted.oai
- [DS-493] Url in browser is incorrect after login
1.6.0 final
===========