Fixed security hole when cloning repository with TortoiseGit (issue-28)
| | |
| | |
|
| | | **%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%)|[war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%)|[fedclient](http://code.google.com/p/gitblit/downloads/detail?name=%FEDCLIENT%)|[manager](http://code.google.com/p/gitblit/downloads/detail?name=%MANAGER%)) based on [%JGIT%][jgit] *released %BUILDDATE%*
|
| | |
|
| | | - **security**: fixed security hole when cloning clone-restricted repository with TortoiseGit (issue 28)
|
| | | - improved: updated ui with Twitter's Bootstrap CSS toolkit
|
| | | **New:** *web.loginMessage = gitblit*
|
| | | - improved: repositories list performance by caching repository sizes (issue 27)
|
| | |
| | | - fixed: collision on rename for repositories and users
|
| | | - fixed: Gitblit can now browse the Linux kernel repository (issue 25)
|
| | | - fixed: Gitblit now runs on Servlet 3.0 webservers (e.g. Tomcat 7, Jetty 8) (issue 23)
|
| | | - fixed: Set the RSS content type for Firefox 4 (issue 22)
|
| | | - fixed: Set the RSS content type of syndication feeds for Firefox 4 (issue 22)
|
| | | - fixed: Null pointer exception if did not set federation strategy (issue 20)
|
| | | - fixed: Gitblit GO allows SSL renegotiation if running on Java 1.6.0_22 or later
|
| | | - added: IUserService.setup(IStoredSettings) for custom user service implementations
|
| | |
| | | -  Freeze repository (i.e. deny push, make read-only)
|
| | | - Ability to federate with one or more other Gitblit instances
|
| | | - JSON RPC interface
|
| | | - Java/Swing Gitblit Manager tool |
| | | - Gitweb inspired web UI
|
| | | - Administrators may create, edit, rename, or delete repositories through the web UI
|
| | | - Administrators may create, edit, rename, or delete users through the web UI
|
| | | - Administrators may create, edit, rename, or delete repositories through the web UI or RPC interface
|
| | | - Administrators may create, edit, rename, or delete users through the web UI or RPC interface
|
| | | - Repository Owners may edit repositories through the web UI
|
| | | - Git-notes support
|
| | | - Git-notes display support
|
| | | - Branch metrics (uses Google Charts)
|
| | | - HEAD and Branch RSS feeds
|
| | | - Blame annotations view
|
| | |
| | | ],
|
| | | "isFederated": false,
|
| | | "skipSizeCalculation": false,
|
| | | "skipSummaryMetrics": false,
|
| | | "size": "102 KB"
|
| | | },
|
| | | "https://localhost/git/libraries/smack.git": {
|
| | |
| | | "federationSets": [],
|
| | | "isFederated": false,
|
| | | "skipSizeCalculation": false,
|
| | | "skipSummaryMetrics": false,
|
| | | "size": "4.8 MB"
|
| | | }
|
| | | }
|
| | |
| | | "libraries"
|
| | | ],
|
| | | "isFederated": false,
|
| | | "skipSizeCalculation": false,
|
| | | "skipSummaryMetrics": false,
|
| | | "size": "102 KB"
|
| | | }
|
| | | </pre>
|
| | |
| | | ### Current Release
|
| | | **%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%)|[war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%)|[fedclient](http://code.google.com/p/gitblit/downloads/detail?name=%FEDCLIENT%)|[manager](http://code.google.com/p/gitblit/downloads/detail?name=%MANAGER%)) based on [%JGIT%][jgit] *released %BUILDDATE%*
|
| | |
|
| | | - **security**: fixed security hole when cloning clone-restricted repository with TortoiseGit (issue 28)
|
| | | - improved: updated ui with Twitter's Bootstrap CSS toolkit
|
| | | **New:** *web.loginMessage = gitblit*
|
| | | - improved: repositories list performance by caching repository sizes (issue 27)
|
| | |
| | | - fixed: collision on rename for repositories and users
|
| | | - fixed: Gitblit can now browse the Linux kernel repository (issue 25)
|
| | | - fixed: Gitblit now runs on Servlet 3.0 webservers (e.g. Tomcat 7, Jetty 8) (issue 23)
|
| | | - fixed: Set the RSS content type for Firefox 4 (issue 22)
|
| | | - fixed: Set the RSS content type of syndication feeds for Firefox 4 (issue 22)
|
| | | - fixed: Null pointer exception if did not set federation strategy (issue 20)
|
| | | - fixed: Gitblit GO allows SSL renegotiation if running on Java 1.6.0_22 or later
|
| | | - added: IUserService.setup(IStoredSettings) for custom user service implementations
|
| | |
| | | import javax.servlet.http.HttpServletRequest;
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | |
|
| | | import com.gitblit.AuthenticationFilter.AuthenticatedRequest;
|
| | | import com.gitblit.models.RepositoryModel;
|
| | | import com.gitblit.models.UserModel;
|
| | | import com.gitblit.utils.StringUtils;
|
| | |
| | | return gitReceivePack;
|
| | | } else if (suffix.contains("?service=git-upload-pack")) {
|
| | | return gitUploadPack;
|
| | | } else {
|
| | | return gitUploadPack;
|
| | | }
|
| | | }
|
| | | return null;
|
| | |
| | |
|
| | | import org.eclipse.jgit.api.CloneCommand;
|
| | | import org.eclipse.jgit.api.Git;
|
| | | import org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider;
|
| | | import org.eclipse.jgit.util.FileUtils;
|
| | |
|
| | | import com.gitblit.GitBlitServer;
|
| | |
| | | }
|
| | |
|
| | | public void testClone() throws Exception {
|
| | | FileUtils.delete(folder, FileUtils.RECURSIVE);
|
| | | if (folder.exists()) {
|
| | | FileUtils.delete(folder, FileUtils.RECURSIVE);
|
| | | }
|
| | | CloneCommand clone = Git.cloneRepository();
|
| | | clone.setURI(MessageFormat.format("http://localhost:{0,number,#}/git/ticgit.git", port));
|
| | | clone.setDirectory(folder);
|
| | |
| | | git.push().setPushAll().call();
|
| | | git.getRepository().close();
|
| | | }
|
| | | |
| | | public void testBogusLoginClone() throws Exception {
|
| | | File folder = new File(GitBlitSuite.REPOSITORIES, "working/gitblit");
|
| | | if (folder.exists()) {
|
| | | FileUtils.delete(folder, FileUtils.RECURSIVE);
|
| | | }
|
| | | CloneCommand clone = Git.cloneRepository();
|
| | | clone.setURI(MessageFormat.format("http://localhost:{0,number,#}/git/gitblit.git", port));
|
| | | clone.setDirectory(folder);
|
| | | clone.setBare(false);
|
| | | clone.setCloneAllBranches(true);
|
| | | clone.setCredentialsProvider(new UsernamePasswordCredentialsProvider("bogus", "bogus"));
|
| | | clone.call();
|
| | | }
|
| | | }
|