You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2014/10/27 15:24:21 UTC
git commit: [OLINGO-464] Fix Servlet URI bug
Repository: olingo-odata2
Updated Branches:
refs/heads/master 83ff09155 -> 9dd4de726
[OLINGO-464] Fix Servlet URI bug
Project: http://git-wip-us.apache.org/repos/asf/olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/9dd4de72
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata2/tree/9dd4de72
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata2/diff/9dd4de72
Branch: refs/heads/master
Commit: 9dd4de7260dc7ab8b6bf7841c9b648e009ecb3d0
Parents: 83ff091
Author: Christian Amend <ch...@apache.org>
Authored: Mon Oct 27 15:20:13 2014 +0100
Committer: Christian Amend <ch...@apache.org>
Committed: Mon Oct 27 15:20:55 2014 +0100
----------------------------------------------------------------------
.../main/java/org/apache/olingo/odata2/core/servlet/RestUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/9dd4de72/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/servlet/RestUtil.java
----------------------------------------------------------------------
diff --git a/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/servlet/RestUtil.java b/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/servlet/RestUtil.java
index 6e06bc1..22644ab 100644
--- a/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/servlet/RestUtil.java
+++ b/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/servlet/RestUtil.java
@@ -356,7 +356,7 @@ public class RestUtil {
}
int indexServletPath = requestUri.indexOf(servletRequest.getServletPath());
- if (indexServletPath > 0) {
+ if (indexServletPath >= 0) {
pathInfoString = pathInfoString.substring(servletRequest.getServletPath().length());
}
return pathInfoString;