summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Padgett2011-11-09 13:57:17 (EST)
committer Michael Fiedler2012-01-10 15:21:17 (EST)
commit7046f4cfe7e0718b1b4d1ce48571d33cf0be069b (patch)
tree7f2b2eedd7c19239c0074f57f7aa2cb2db86d3ab
parentee05016c09ba46c7bca6ee777175e6d25f62d9b1 (diff)
downloadorg.eclipse.lyo.server-7046f4cfe7e0718b1b4d1ce48571d33cf0be069b.zip
org.eclipse.lyo.server-7046f4cfe7e0718b1b4d1ce48571d33cf0be069b.tar.gz
org.eclipse.lyo.server-7046f4cfe7e0718b1b4d1ce48571d33cf0be069b.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()));