Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-01-04 08:00:56 +0000
committerspingel2010-01-04 08:00:56 +0000
commitc00dca7b88df68ffe6df8f74023ffb780c89ce44 (patch)
treeb850f7ec584ded5900a8aab02f522d66513821f8 /org.eclipse.mylyn.trac.core
parenta6b800dfa6880fa06d8243349b25ebd113505f8e (diff)
downloadorg.eclipse.mylyn.tasks-c00dca7b88df68ffe6df8f74023ffb780c89ce44.tar.gz
org.eclipse.mylyn.tasks-c00dca7b88df68ffe6df8f74023ffb780c89ce44.tar.xz
org.eclipse.mylyn.tasks-c00dca7b88df68ffe6df8f74023ffb780c89ce44.zip
RESOLVED - bug 297030: [releng] update Trac test repository to 0.11.6
https://bugs.eclipse.org/bugs/show_bug.cgi?id=297030
Diffstat (limited to 'org.eclipse.mylyn.trac.core')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
index 3d3325af1..355baa2ee 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
@@ -182,6 +182,14 @@ public class TracXmlRpcClient extends AbstractTracClient implements ITracWikiCli
throw new TracException(e);
}
} catch (XmlRpcException e) {
+ // XXX work-around for http://trac-hacks.org/ticket/5848
+ if ("XML_RPC privileges are required to perform this operation".equals(e.getMessage())) { //$NON-NLS-1$
+ if (DEBUG_AUTH) {
+ System.err.println(location.getUrl() + ": Forbidden (" + e.code + ")"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ digestScheme = null;
+ throw new TracPermissionDeniedException();
+ }
if (e.code == NO_SUCH_METHOD_ERROR) {
throw new TracNoSuchMethodException(e);
} else {

Back to the top