List of commits:
Subject Hash Author Date (UTC)
Newer git, by providing an empty user, will not sent the user. This is bad, switch to using 'guest' user 0c84bf03fa4ceb3fe4b832c39134116d8cea6105 Catalin(ux) M. BOIE 2017-11-26 14:23:11
Fixed edit_no_check's pass field usage ebd3ff1f73009bcf5943589e19ee8a573d80f6ac Catalin(ux) M. BOIE 2017-11-26 14:20:45
Small fix for typos in test runner a85032bd5854816c8df6e8d23a1817e462a6f31e Catalin(ux) M. BOIE 2017-11-26 13:47:18
We must set oversize_diff, even if also_patch is false c347c23a5ecc022a4354cfa27088fe3db5cddeea Catalin(ux) M. BOIE 2017-11-26 13:43:31
Added debug for rg_cache_merge function 740eb3b5dbd19ff8ab852ff745c4cad4b1b1a4fb Catalin(ux) M. BOIE 2017-11-26 13:42:38
Improved a little bit the way the tests are run c169ce030975bd0580d867a806df9c401a2b38e8 Catalin(ux) M. BOIE 2017-11-26 13:42:06
Latest git breaks anonymous push - fix it by using 'guest' user instead of the empty one b3d1265cc9b44786c0fd7aa2988c5614f62db978 Catalin(ux) M. BOIE 2017-11-26 12:39:43
Lots of changes, but mostly LDAP support 029d34fdc14587b9ef6eb9e87ac36f66caefdacf Catalin(ux) M. BOIE 2017-11-24 19:35:59
Fix state bug which triggered a not needed update of the structure f6118c456bfc960782a53b9dc090046d542f9db9 Catalin(ux) M. BOIE 2017-11-24 19:12:38
Some free_result and unlock only if successfully locked 64666ca1371c004f74376fce2e2a67ee9f608a34 Catalin(ux) M. BOIE 2017-10-01 06:10:47
If git_log_simple returns error, just return error acbbacda0947a3f8496c9b15870db574c08db715 Catalin(ux) M. BOIE 2017-08-31 03:43:25
Be less verbose in rg_rights_test 3cb2d12960b059b61f7c2c47c6198fbbdee8bccd Catalin(ux) M. BOIE 2017-08-10 04:19:34
Remove rg_log_buf stuff because of performance issues e85f70b38c197d44a9b4878dcff78da4f4f56562 Catalin(ux) M. BOIE 2017-08-08 20:08:56
Use a more efficient way to log multi line strings 67923e6760bf26923bd7ce9c9bced7a3f526cecf Catalin(ux) M. BOIE 2017-08-08 19:54:00
css: make border more visible 378b328cde875d1584f3df6d8635b340ee23207a Catalin(ux) M. BOIE 2017-07-22 23:27:29
struct: add itime for commit_labels 67d189b9d3330ab4dc3b6a0580a736522b6c1d36 Catalin(ux) M. BOIE 2017-07-22 23:05:02
wh: builder: we need repo info for clone_url_ssh info 6e95861b22476b0857f98a49025fc060302c2a3f Catalin(ux) M. BOIE 2017-07-22 12:35:52
hints: ssh: make more clear that ssh must be restarted 8c35f89b323d3ea28fad79f4c32d78aadc8618f6 Catalin(ux) M. BOIE 2017-07-22 08:17:37
rg_authorize must be run as rocketgit user - fix permissions to 0755 80db46ae953b72ba521b3cd96c91602e127fc8f8 Catalin(ux) M. BOIE 2017-07-22 08:07:56
build_jobs: Columns with no defaults must be specified bbb1c0036be3c6180d84e0641f41aa60ae1905f1 Catalin(ux) M. BOIE 2017-07-20 20:34:32
Commit 0c84bf03fa4ceb3fe4b832c39134116d8cea6105 - Newer git, by providing an empty user, will not sent the user. This is bad, switch to using 'guest' user
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-11-26 14:23
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-11-26 14:23
Parent(s): ebd3ff1f73009bcf5943589e19ee8a573d80f6ac
Signer:
Signing key:
Signing status: N
Tree: bfc6032e572e3cf8aedcb801a849d5242d89441c
File Lines added Lines deleted
inc/user.inc.php 10 12
File inc/user.inc.php changed (mode: 100644) (index a78b788..91ff189)
... ... function rg_user_http_git($db, $rg, $paras)
2222 2222 header('Cache-Control: no-cache, max-age=0, must-revalidate'); header('Cache-Control: no-cache, max-age=0, must-revalidate');
2223 2223 header('Content-Type: text/plain'); header('Content-Type: text/plain');
2224 2224
2225 // if user is valid, retry auth
2226 // if user is not valid, consider anonymous
2225 // If user is valid, retry auth.
2226 // If user is not valid, consider anonymous.
2227 2227 $authd = FALSE; $authd = FALSE;
2228 2228 $u = ''; $u = '';
2229 $empty_user = TRUE;
2229 $no_user_provided = TRUE;
2230 2230 $auth_ui = rg_user_empty(); $auth_ui = rg_user_empty();
2231 2231 while (isset($_SERVER['PHP_AUTH_USER']) while (isset($_SERVER['PHP_AUTH_USER'])
2232 2232 && isset($_SERVER['PHP_AUTH_PW'])) { && isset($_SERVER['PHP_AUTH_PW'])) {
 
... ... function rg_user_http_git($db, $rg, $paras)
2234 2234 $p = $_SERVER['PHP_AUTH_PW']; $p = $_SERVER['PHP_AUTH_PW'];
2235 2235 rg_log('DEBUG: HTTP auth: u=' . $u); rg_log('DEBUG: HTTP auth: u=' . $u);
2236 2236
2237 if (empty($u))
2238 break;
2239 if (strcasecmp($u, 'guest') == 0) {
2237 $no_user_provided = FALSE;
2238
2239 if (strcasecmp($u, 'guest') == 0)
2240 2240 $u = ''; $u = '';
2241 if (empty($u))
2241 2242 break; break;
2242 }
2243
2244 $empty_user = FALSE;
2245 2243
2246 2244 $auth_ui = rg_user_info($db, 0, $u, ''); $auth_ui = rg_user_info($db, 0, $u, '');
2247 2245 if ($auth_ui['ok'] !== 1) { if ($auth_ui['ok'] !== 1) {
 
... ... function rg_user_http_git($db, $rg, $paras)
2297 2295 if ($r['allow'] !== 1) { if ($r['allow'] !== 1) {
2298 2296 rg_log('DEBUG: allow != 1 => 401'); rg_log('DEBUG: allow != 1 => 401');
2299 2297 // Connecting user has no rights to push, not even anon. // Connecting user has no rights to push, not even anon.
2300 // The user be authed at this point, but may try another
2298 // The user may be authed at this point, but may try another
2301 2299 // user/pass combination. // user/pass combination.
2302 2300 header($protocol . ' 401 Unauthorized status'); header($protocol . ' 401 Unauthorized status');
2303 2301 header('WWW-Authenticate: Basic' header('WWW-Authenticate: Basic'
 
... ... function rg_user_http_git($db, $rg, $paras)
2309 2307 } }
2310 2308
2311 2309 rg_log('DEBUG: push_allowed=' . $r['push_allowed'] rg_log('DEBUG: push_allowed=' . $r['push_allowed']
2312 . ' empty_user=' . ($empty_user ? 'yes' : 'no')
2310 . ' no_user_provided=' . ($no_user_provided ? 'yes' : 'no')
2313 2311 . ' authd=' . ($authd['ok'] === 1 ? 'yes' : 'no') . ' authd=' . ($authd['ok'] === 1 ? 'yes' : 'no')
2314 2312 . ' exists=' . $auth_ui['exists'] . ' exists=' . $auth_ui['exists']
2315 2313 . ' push=' . $r['push']); . ' push=' . $r['push']);
 
... ... function rg_user_http_git($db, $rg, $paras)
2318 2316 // If user is correct, but password is not, we will ask // If user is correct, but password is not, we will ask
2319 2317 // the user to try again. If user is not correct, // the user to try again. If user is not correct,
2320 2318 // we will go on with anon push access. // we will go on with anon push access.
2321 if ($empty_user
2319 if ($no_user_provided
2322 2320 || (($authd['ok'] !== 1) && ($auth_ui['exists'] == 1))) { || (($authd['ok'] !== 1) && ($auth_ui['exists'] == 1))) {
2323 2321 rg_log('DEBUG: send 401'); rg_log('DEBUG: send 401');
2324 2322 header($protocol . ' 401 Unauthorized status'); header($protocol . ' 401 Unauthorized status');
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main