| Summary: | HTTP authentication doesn't work | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Daniel Kozak <kozak> |
| Component: | Core | Assignee: | Project Inbox <egit.core-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | arlehmann, joern, l.kneschke, matthias.sohn, mn |
| Version: | unspecified | ||
| Target Milestone: | 3.3 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Daniel Kozak
What's the server environment you are pushing to ? Which authentication method does the server you are trying to push to require ? Do you have permission to push changes (depends on server side implementation) ? (In reply to comment #1) > What's the server environment you are pushing to ? > Which authentication method does the server you are trying to push to require ? > Do you have permission to push changes (depends on server side implementation) > ? I setup my own server, I try both (basic and digest) auth method. Yes I have permission to push changes. When I use git from cmdline everything is OK. part of my apache vhost config <LocationMatch "^/git/.*/git-receive-pack$"> Options Indexes FollowSymLinks MultiViews ExecCGI AuthType Basic AuthName "Git" AuthUserFile /etc/apache2/passwd/passwords Require valid-user </LocationMatch> apache git config SetEnv GIT_PROJECT_ROOT /var/www/html/system/web/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ See also bug #339220 and #338048. The values stored in the input fields don't get used for authentication. I validated this using whireshark. The only way to get authentication working is to enter the username and password in the git repository url. Which is very unsecure, as the git repository get's added to commit messages sometimes. proposed patches EGit https://git.eclipse.org/r/#/c/23443/ JGit https://git.eclipse.org/r/#/c/23441/ jgit: https://git.eclipse.org/r/#/c/23441/ merged as 8598fe3d2bdc6e4a7e136a8579fad2545f34f546 egit: https://git.eclipse.org/r/#/c/23643/ merged as bba4e7ff4321b0748d4687e0d40bbf23de5a81d3 https://git.eclipse.org/r/#/c/23443/ merged as b5a2d497ae44fa7ba99a93bb31fc2f0c7c8b7304 |