From 1c6c73c5a9b8dd700be45d658f165a464265dba7 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Wed, 27 Jun 2012 11:06:37 -0700 Subject: Work around smart HTTP bugs in C Git I have unfortunately introduced a few bugs in the native Git client over the years. 1.7.5 is unable to send chunked requests correctly, resulting in corrupt data at the server. Ban this client whenever it uses chunked encoding with an error message. Prior to some more recent versions, git push over HTTP failed to report status information and error messages due to a race within the client and its helper process. Check for these bad versions and send errors as messages before the status report, enabling users to see the failures on their terminal. Change-Id: Ic62d6591cbd851d21dbb3e9b023d655eaecb0624 --- .../org/eclipse/jgit/http/server/HttpServerText.properties | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'org.eclipse.jgit.http.server/resources') diff --git a/org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties b/org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties index e811891904..dbc5bf7b8f 100644 --- a/org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties +++ b/org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties @@ -1,5 +1,12 @@ alreadyInitializedByContainer=Already initialized by container cannotGetLengthOf=Cannot get length of {0} +clientHas175ChunkedEncodingBug=Git client software upgrade is required.\n\ +\n\ +Git 1.7.5 contains a bug that breaks HTTP support in the client.\n\ +Please upgrade to Git 1.7.5.1 or newer (or alternatively, downgrade\n\ +to any version between 1.6.6 and 1.7.4.5).\n\ +\n\ + http://git-scm.com/download\n encodingNotSupportedByThisLibrary={0} "{1}": not supported by this library. expectedRepositoryAttribute=Expected Repository attribute filterMustNotBeNull=filter must not be null -- cgit v1.2.3