Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2018-11-28 20:35:29 -0500
committerAlexei Trebounskikh2018-11-29 03:35:31 -0500
commit2c6de7dc0ee5d3b501df7b8c371ffe87d82c9f69 (patch)
tree046e8ea13557b2b97d173fddc0baacc387475674
parente5d08a7ecd02324d592909e57f767277b9b04c3e (diff)
downloadorg.eclipse.mylyn.reviews-2c6de7dc0ee5d3b501df7b8c371ffe87d82c9f69.tar.gz
org.eclipse.mylyn.reviews-2c6de7dc0ee5d3b501df7b8c371ffe87d82c9f69.tar.xz
org.eclipse.mylyn.reviews-2c6de7dc0ee5d3b501df7b8c371ffe87d82c9f69.zip
485981: fix anonymous check when retrieving submit records
Change-Id: Iaa6baefba40966b8f0ec16793ff88e35b2c2fd8f Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=485981 Signed-off-by: Jaxsun McCarthy Huggan <jaxsun.mccarthy@tasktop.com>
-rw-r--r--org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient29.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient29.java b/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient29.java
index b9908478..5fba7c11 100644
--- a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient29.java
+++ b/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient29.java
@@ -27,7 +27,6 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.mylyn.commons.core.StatusHandler;
-import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.internal.gerrit.core.GerritCorePlugin;
import org.eclipse.mylyn.internal.gerrit.core.client.GerritHttpClient.ErrorHandler;
import org.eclipse.mylyn.internal.gerrit.core.client.compat.ChangeDetailX;
@@ -247,7 +246,7 @@ public class GerritClient29 extends GerritClient {
private List<SubmitRecord> currentSubmitRecord(String uri, IProgressMonitor monitor) throws GerritException {
List<SubmitRecord> submitRecordList = new ArrayList<SubmitRecord>();
- if (getRepository().getCredentials(AuthenticationType.REPOSITORY) == null) {
+ if (isAnonymous()) {
return submitRecordList;
}
SubmitRecord[] submitRecordArray = getRestClient().executePostRestRequest(uri, new SubmitRecord(),

Back to the top