Merge "Update 2.11 release notes" into stable-2.11
diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/GitOverHttpServlet.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/GitOverHttpServlet.java
index 97de6b5..e73f805 100644
--- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/GitOverHttpServlet.java
+++ b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/GitOverHttpServlet.java
@@ -63,6 +63,8 @@
import org.eclipse.jgit.transport.resolver.UploadPackFactory;
import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
@@ -156,6 +158,13 @@
public Repository open(HttpServletRequest req, String projectName)
throws RepositoryNotFoundException, ServiceNotAuthorizedException,
ServiceNotEnabledException {
+ try {
+ // TODO: remove this code when Guice fixes its issue 745
+ projectName = URLDecoder.decode(projectName, "UTF-8");
+ } catch (UnsupportedEncodingException e) {
+ // leave it encoded
+ }
+
while (projectName.endsWith("/")) {
projectName = projectName.substring(0, projectName.length() - 1);
}