- 28 Oct, 2021 4 commits
-
-
zeripath authored
* Changelog 1.15.6 Unforunately #17435 is a somewhat critical bug and therefore we should really release 1.15.6 as soon as possible. ## [1.15.6](https://github.com/go-gitea/gitea/releases/tag/v1.15.6 ) - 2021-10-27 * BUGFIXES * Prevent panic in serv.go with Deploy Keys (#17434) (#17435) * Fix CSV render error (#17406) (#17431) * Read expected buffer size (#17409) (#17430) Signed-off-by:
Andrew Thornton <art27@cantab.net> * Add 17456 and its backport Signed-off-by:
Andrew Thornton <art27@cantab.net> * Add 17464 Signed-off-by:
Andrew Thornton <art27@cantab.net> * Add final pr * Update date Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
wxiaoguang authored
Backport #17447 Close #17443
-
zeripath authored
Backport #17456 modules/private/serv.go has two major functions that are missing testcases to ensure that Deploy and normal SSH keys work correctly. This PR adds some basic integration tests for these. Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
6543 <6543@obermui.de>
-
zeripath authored
Backport #17460 There is a small bug in the way that repo access is checked in repoAssignment: Accessibility is checked by checking if the user has a marked access to the repository instead of checking if the user has any team granted access. This PR changes this permissions check to use HasAccess() which does the correct test. There is also a fix in the release api ListReleases where it should return draft releases if the user is a member of a team with write access to the releases. The PR also adds a testcase. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 25 Oct, 2021 4 commits
-
-
zeripath authored
Backport #17434 Unfortunately there was a regression in #17373 which missed that the user is not for deploy keys. This leads to a panic when pushing with deploy keys. Fix #17412 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
KN4CK3R authored
Backport #17406. Closes #17378 Both errors from #17378 were caused by #15175. Problem 1 (error with added file): `ToUTF8WithFallbackReader` creates a `MultiReader` from a `byte[2048]` and the remaining reader. `CreateReaderAndGuessDelimiter` tries to read 10000 bytes from this reader but only gets 2048 because that's the first reader in the `MultiReader`. Then the `if size < 1e4` thinks the input is at EOF and just returns that. Problem 2 (error with changed file): The blob reader gets defer closed. That was fine because the old version reads the whole file into memory. Now with the streaming version the close needs to defer after the method. Co-authored-by:
zeripath <art27@cantab.net>
-
KN4CK3R authored
Backport of #17409 * Read expected buffer size. * Changed name.
-
wxiaoguang authored
We allow to render empty check list item - [ ], while GitHub doesn't allow. To make the rendering correct, we need tune the UI (the last PR #17413 uses absolute layout, which makes the empty checkbox item can not be displayed correctly)
-
- 23 Oct, 2021 1 commit
-
-
wxiaoguang authored
* Bug fix: render Markdown `http://AppURL/org/repo/issues/4?a=1&b=2#comment-123 test` to HTML correctly, close #17394 * Bug fix: fix the positions of checkboxes in rendered HTML, close #17395 # Conflicts: # modules/markup/html.go
-
- 21 Oct, 2021 4 commits
-
-
zeripath authored
* SECURITY * Upgrade Bluemonday to v1.0.16 (#17372) (#17374) * Ensure correct SSH permissions check for private and restricted users (#17370) (#17373) * BUGFIXES * Prevent NPE in CSV diff rendering when column removed (#17018) (#17377) * Offer rsa-sha2-512 and rsa-sha2-256 algorithms in internal SSH (#17281) (#17376) * Don't panic if we fail to parse U2FRegistration data (#17304) (#17371) * Ensure popup text is aligned left (backport for 1.15) (#17343) * Ensure that git daemon export ok is created for mirrors (#17243) (#17306) * Disable core.protectNTFS (#17300) (#17302) * Use pointer for wrappedConn methods (#17295) (#17296) * AutoRegistration is supposed to be working with disabled registration (backport) (#17292) * Handle duplicate keys on GPG key ring (#17242) (#17284) * Fix SVG side by side comparison link (#17375) (#17391) Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
zeripath authored
Backport #17375 Define unique names for image tabs in pull requests, in order to toggle tabs correctly when multiple are displayed on one page. Fixes position of swipe-bar so it does not overlay other UI components when scrolling. Signed-off-by:
Mario Lubenka <mario.lubenka@googlemail.com> Co-authored-by:
Mario Lubenka <mario.lubenka@googlemail.com>
-
zeripath authored
Backport #17281 There is a subtle bug in the SSH library x/crypto/ssh which makes the incorrect assumption that the public key type is the same as the signature algorithm type. This means that only ssh-rsa signatures are offered by default. This PR adds a workaround around this problem. Fix #17175 Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
Lunny Xiao authored
Backport #17381
-
- 20 Oct, 2021 4 commits
-
-
6543 authored
-
Richard Mahn authored
Backport of #17018 Fixes #16837 if a column is deleted.
-
6543 authored
Repositories owned by private users and organisations and pulls by restricted users need to have permissions checked. Previously Serv would simply assumed that if the user could log in and the repository was not private then it would be visible. Fix #17364 Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Andrew Thornton <art27@cantab.net>
-
zeripath authored
Backport #17304 Downgrade logging statement from Fatal to Error so that errors parsing U2FRegistration data does not panic; instead, the invalid key will be skipped and we will attempt to parse the next one, if available. Signed-off-by:
David Jimenez <dvejmz@sgfault.com> Co-authored-by:
David Jimenez <dvejmz@users.noreply.github.com>
-
- 18 Oct, 2021 1 commit
-
-
John Olheiser authored
Signed-off-by:
jolheiser <john.olheiser@gmail.com>
-
- 17 Oct, 2021 1 commit
-
-
Mario Lubenka authored
Signed-off-by:
Mario Lubenka <mario.lubenka@googlemail.com>
-
- 14 Oct, 2021 1 commit
-
-
zeripath authored
Backport #17243 There is an issue with #16508 where it appears that create repo requires that the repo does not exist. This causes #17241 where an error is reported because of this. This PR fixes this and also runs update-server-info for mirrors and generated repos. Fix #17241 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 13 Oct, 2021 1 commit
-
-
zeripath authored
Backport #17300 core.protectNTFS protects NTFS from files which may be difficult to remove or interact with using the win32 api, however, it also appears to prevent such files from being entered into the git indexes - fundamentally causing breakages with PRs that affect these files. However, deliberately setting this to false may cause security issues due to the remain sparse checkout of files in the merge pipeline. The only sensible option therefore is to provide an optional setting which admins could set which would forcibly switch this off if they are affected by this issue. Fix #17092 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 12 Oct, 2021 2 commits
-
-
zeripath authored
Backport #17295 Fix #17294 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
Viktor Kuzmin authored
-
- 11 Oct, 2021 1 commit
-
-
zeripath authored
Backport #17242 It is possible that a keyring can contain duplicate keys on a keyring due to jpegs or other layers. This currently leads to a confusing error for the user - where we report a duplicate key insertion. This PR simply coalesces keys into one key if there are duplicates. Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
6543 <6543@obermui.de> Co-authored-by:
6543 <6543@obermui.de>
-
- 08 Oct, 2021 4 commits
-
-
Matti R authored
-
Norwin authored
-
Norwin authored
...when path contains no hash-path-separator ('/') This is a workaround to #17179. Entering this case when `path` does not contain a '/' does not really make sense, as that means the tree path is empty, but this case is only entered for routes that expect a non-empty tree path. Treepaths like <40-char-dirname>/<filename> will still fail, but hopefully don't occur that often. A more complete fix that avoids this case too is outlined in #17185, but too big of a change to backport
-
Jimmy Praet authored
Fixes #17249
-
- 07 Oct, 2021 5 commits
-
-
Jimmy Praet authored
Add missing issue_id = ? to where clause Fixes #17251
-
6543 authored
- this fixes the CI release upload issues, as the docker image for this is freshly built (unlike the mostly unmaintained "official" drone plugins), thus containing current CA certs needed for letsencrypt since 2021-09-31. - woodpecker is a drone-ci fork maintained partially by @6543. it's API compatible with current drone plugins afaik
-
6543 authored
-
Jimmy Praet authored
Remove '/' suffix from organization dashboard link Fixes #17250
-
pricly-yellow authored
* for all pull requests API return permissions of caller * for all webhook return empty permissions Signed-off-by:
Danila Kryukov <pricly_yellow@dismail.de> * Fix incorrect error handler Co-authored-by:
delvh <dev.lh@web.de> * Fix wrong assumption in tests * Change paramenter name to doer to indicate source Co-authored-by:
6543 <6543@obermui.de> Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
6543 <6543@obermui.de>
-
- 05 Oct, 2021 1 commit
-
-
pricly-yellow authored
Fix GetPullRequestByIndex by validate index > 1 Signed-off-by:
Danila Kryukov <pricly_yellow@dismail.de> Co-authored-by:
a1012112796 <1012112796@qq.com>
-
- 01 Oct, 2021 1 commit
-
-
6543 authored
* Check user instead of organization * Enforce that only admins can copy a repo to another user Co-authored-by:
Ion Jaureguialzo Sarasola <ion@jaureguialzo.com>
-
- 30 Sep, 2021 2 commits
-
-
Lunny Xiao authored
-
Alexey 〒erentyev authored
Signed-off-by:
Alexey Terentyev <axifnx@gmail.com> Co-authored-by:
6543 <6543@obermui.de>
-
- 29 Sep, 2021 1 commit
-
-
zeripath authored
Backport #17183 There was a mistake in the template file: `templates/mail/issue/assigned.tmpl` where the repourl was generated from a non-existent release instead of the issue. This PR changes this to use the issue but also ensure that the issue repo is loaded. It also slightly improves the English and the Russian locale string. Fix #17160 Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
6543 <6543@obermui.de>
-
- 28 Sep, 2021 2 commits
-
-
Lunny Xiao authored
Co-authored-by:
6543 <6543@obermui.de>
-
zeripath authored
Backport #17049 It is possible to have a collaboration in a repository which refers to a no-longer existing user. This causes the repository transfer to fail with an unusual error. This PR makes `repo.getCollaborators()` nicely handle the missing user by ghosting the collaboration but also adds consistency check. It also adds an Access consistency check. Fix #17044 Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
KN4CK3R <admin@oldschoolhack.me>
-