From df751500c524ed44c3ee4add4c3d4c659e323948 Mon Sep 17 00:00:00 2001 From: Winston Li Date: Thu, 4 Dec 2014 23:13:44 +0000 Subject: [PATCH] Added /postback on the end of postbackUrl. --- .../ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshot.java | 2 +- .../src/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPI.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshot.java b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshot.java index aff3d57d4b..e2b350cc60 100644 --- a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshot.java +++ b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLDirectoryNodeSnapshot.java @@ -35,7 +35,7 @@ public class WLDirectoryNodeSnapshot implements CandidateSnapshot { JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("latestVerId", previousVersionID); jsonObject.add("files", getFilesAsJson()); - jsonObject.addProperty("postbackUrl", projectURL + "/" + postbackKey); + jsonObject.addProperty("postbackUrl", projectURL + "/" + postbackKey + "/postback"); System.out.println(jsonObject); return jsonObject; } diff --git a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPI.java b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPI.java index 6783560dc0..dca244b241 100644 --- a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPI.java +++ b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WriteLatexAPI.java @@ -16,10 +16,7 @@ import uk.ac.ic.wlgitbridge.writelatex.api.request.push.exception.SnapshotPostEx import uk.ac.ic.wlgitbridge.writelatex.model.WLDataModel; import java.io.IOException; -import java.util.HashMap; import java.util.List; -import java.util.Map; -import java.util.concurrent.locks.Lock; /** * Created by Winston on 16/11/14. @@ -28,13 +25,11 @@ public class WriteLatexAPI implements WriteLatexDataSource { private final WLDataModel dataModel; private final PostbackManager postbackManager; - private final Map projectLocks; private final ProjectLock mainProjectLock; public WriteLatexAPI(WLDataModel dataModel) { this.dataModel = dataModel; postbackManager = new PostbackManager(); - projectLocks = new HashMap(); mainProjectLock = new ProjectLock(); }