From ccf17f98675bd43df6c45aa9e968976f600fdc62 Mon Sep 17 00:00:00 2001 From: Winston Li Date: Sun, 16 Nov 2014 21:58:36 +0000 Subject: [PATCH] Extracted project name properly from uri. --- .../wlgitbridge/application/SnapshotPushPostbackHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/git-bridge/src/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandler.java b/services/git-bridge/src/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandler.java index 55188da04b..7d5d2f5a3b 100644 --- a/services/git-bridge/src/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandler.java +++ b/services/git-bridge/src/uk/ac/ic/wlgitbridge/application/SnapshotPushPostbackHandler.java @@ -37,7 +37,8 @@ public class SnapshotPushPostbackHandler extends AbstractHandler { } String data = sb.toString(); JsonObject dataObj = new Gson().fromJson(data, JsonObject.class); - writeLatexDataSource.postbackReceivedSuccessfully(request.getRequestURI().split("/")[0]); + System.out.println(request.getRequestURI()); + writeLatexDataSource.postbackReceivedSuccessfully(request.getRequestURI().split("/")[1]); baseRequest.setHandled(true); } }