diff options
author | relves | 2007-06-07 17:58:36 +0000 |
---|---|---|
committer | relves | 2007-06-07 17:58:36 +0000 |
commit | 0f301b3a53988ccbaf4782fb3dce11143af4386a (patch) | |
tree | c5988792c17c4e139fec3c6ebfea69af4d31ebdc /org.eclipse.mylyn.bugzilla.core | |
parent | 00efdf6ed0ee49ba4bc3b0e64ee1ddd3282191d4 (diff) | |
download | org.eclipse.mylyn.tasks-0f301b3a53988ccbaf4782fb3dce11143af4386a.tar.gz org.eclipse.mylyn.tasks-0f301b3a53988ccbaf4782fb3dce11143af4386a.tar.xz org.eclipse.mylyn.tasks-0f301b3a53988ccbaf4782fb3dce11143af4386a.zip |
ASSIGNED - bug 189066: [api] updateTaskFromTaskData() should not block
https://bugs.eclipse.org/bugs/show_bug.cgi?id=189066
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
3 files changed, 9 insertions, 12 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java index 2536a6147..8832a72bd 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java @@ -605,7 +605,8 @@ public class BugzillaClient { } } - public void postAttachment(String bugReportID, String comment, ITaskAttachment attachment) throws HttpException, IOException, CoreException { + public void postAttachment(String bugReportID, String comment, ITaskAttachment attachment) throws HttpException, + IOException, CoreException { WebClientUtil.setupHttpClient(httpClient, proxy, repositoryUrl.toString(), htAuthUser, htAuthPass); if (!authenticated && hasAuthenticationCredentials()) { authenticate(); @@ -622,14 +623,11 @@ public class BugzillaClient { postMethod.getParams().setBooleanParameter(HttpMethodParams.USE_EXPECT_CONTINUE, true); List<PartBase> parts = new ArrayList<PartBase>(); parts.add(new StringPart(IBugzillaConstants.POST_INPUT_ACTION, VALUE_ACTION_INSERT, characterEncoding)); - // if (username != null) { - parts.add(new StringPart(IBugzillaConstants.POST_INPUT_BUGZILLA_LOGIN, username, characterEncoding)); - //} - //if (password != null) { - parts.add(new StringPart(IBugzillaConstants.POST_INPUT_BUGZILLA_PASSWORD, password, characterEncoding)); - // } + parts.add(new StringPart(IBugzillaConstants.POST_INPUT_BUGZILLA_LOGIN, username, characterEncoding)); + parts.add(new StringPart(IBugzillaConstants.POST_INPUT_BUGZILLA_PASSWORD, password, characterEncoding)); parts.add(new StringPart(IBugzillaConstants.POST_INPUT_BUGID, bugReportID, characterEncoding)); - parts.add(new StringPart(IBugzillaConstants.POST_INPUT_DESCRIPTION, attachment.getDescription(), characterEncoding)); + parts.add(new StringPart(IBugzillaConstants.POST_INPUT_DESCRIPTION, attachment.getDescription(), + characterEncoding)); parts.add(new StringPart(IBugzillaConstants.POST_INPUT_COMMENT, comment, characterEncoding)); parts.add(new FilePart(IBugzillaConstants.POST_INPUT_DATA, new AttachmentPartSource(attachment))); diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java index 2541806ee..c76800c1d 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java @@ -282,7 +282,7 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector { } }); - BugzillaRepositoryQuery query = new BugzillaRepositoryQuery(repository.getUrl(), urlQueryString, "", taskList); + BugzillaRepositoryQuery query = new BugzillaRepositoryQuery(repository.getUrl(), urlQueryString, ""); performQuery(query, repository, new NullProgressMonitor(), collector, false); diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryQuery.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryQuery.java index c777ff5e9..3eca6fb2e 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryQuery.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryQuery.java @@ -12,7 +12,6 @@ package org.eclipse.mylar.internal.bugzilla.core; import org.eclipse.mylar.tasks.core.AbstractRepositoryQuery; -import org.eclipse.mylar.tasks.core.TaskList; /** * @author Shawn Minto @@ -22,8 +21,8 @@ public class BugzillaRepositoryQuery extends AbstractRepositoryQuery { private boolean customQuery = false; - public BugzillaRepositoryQuery(String repositoryUrl, String queryUrl, String description, TaskList taskList) { - super(description, taskList); + public BugzillaRepositoryQuery(String repositoryUrl, String queryUrl, String description) { + super(description); this.url = queryUrl; this.repositoryUrl = repositoryUrl; // try { |