Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Lay2010-11-10 08:42:51 +0000
committerStefan Lay2010-11-10 08:42:51 +0000
commit20a5a34444df017ba2232313a8137d220980883d (patch)
treeeed918cfffb017abf081ca6cfdf36e0d8ab77853 /org.eclipse.jgit.http.test
parent17b1003ff221a7ab7d8ef749e15e1a753efd6109 (diff)
downloadjgit-20a5a34444df017ba2232313a8137d220980883d.tar.gz
jgit-20a5a34444df017ba2232313a8137d220980883d.tar.xz
jgit-20a5a34444df017ba2232313a8137d220980883d.zip
Fix WWW-Authenticate auth-scheme comparison
The auth-scheme token (like "Basic" or "Digest") is not specified in a case sensitive way. RFC2617 (http://tools.ietf.org/html/rfc2617) specifies in section 1.2 the use of a "case-insensitive token to identify the authentication scheme". Jetty, for example, uses "basic" as token. Change-Id: I635a94eb0a741abcb3e68195da6913753bdbd889 Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Diffstat (limited to 'org.eclipse.jgit.http.test')
-rw-r--r--org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java
index 06a4eb6a73..770294cace 100644
--- a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java
+++ b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java
@@ -282,7 +282,7 @@ public class HttpClientTests extends HttpTestCase {
fail("connection opened even info/refs needs auth basic");
} catch (TransportException err) {
String exp = dumbAuthBasicURI + ": "
- + JGitText.get().authenticationNotSupported;
+ + JGitText.get().notAuthorized;
assertEquals(exp, err.getMessage());
}
} finally {
@@ -299,7 +299,7 @@ public class HttpClientTests extends HttpTestCase {
fail("connection opened even though service disabled");
} catch (TransportException err) {
String exp = smartAuthBasicURI + ": "
- + JGitText.get().authenticationNotSupported;
+ + JGitText.get().notAuthorized;
assertEquals(exp, err.getMessage());
}
} finally {

Back to the top