aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Padgett2011-11-09 13:57:17 (EST)
committerMichael Fiedler2011-11-09 14:07:51 (EST)
commit8e7998ecf8029775fa18e487411a5761c1d951c0 (patch)
tree88a49bb0fa4c74f209afecb8e9a05d87dfc826d2
parent11c1085024a5be561e181258c4f4decaf08eec3e (diff)
downloadorg.eclipse.lyo.server-8e7998ecf8029775fa18e487411a5761c1d951c0.zip
org.eclipse.lyo.server-8e7998ecf8029775fa18e487411a5761c1d951c0.tar.gz
org.eclipse.lyo.server-8e7998ecf8029775fa18e487411a5761c1d951c0.tar.bz2
Bug 363339 - Fix ResponseInfo URI (missing '?' before query string)
-rw-r--r--org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ChangeRequestCollectionService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ChangeRequestCollectionService.java b/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ChangeRequestCollectionService.java
index a786bf3..c36d269 100644
--- a/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ChangeRequestCollectionService.java
+++ b/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ChangeRequestCollectionService.java
@@ -199,7 +199,8 @@ public class ChangeRequestCollectionService extends HttpServlet {
responseInfo.setNextPage(new URI(URLStrategy
.getChangeRequestCollectionURL(product.getId())
+ "&oslc.paging=true&page=" + (page + 1)));
- responseInfo.setUri(new URI(request.getRequestURL().append(request.getQueryString()).toString()));
+ responseInfo.setUri(new URI(request.getRequestURL().append('?')
+ .append(request.getQueryString()).toString()));
QueryResult queryResult = new QueryResult();
queryResult.setUri(new URI(request.getRequestURL().toString()));