- 28 Dec, 2022 1 commit
-
-
Jason Song authored
Backport #22244. Fix #13485. Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
Lauris BH <lauris@nix.lv> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
Lauris BH <lauris@nix.lv> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 22 Dec, 2022 1 commit
-
-
KN4CK3R authored
Backport of #22150 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 21 Dec, 2022 1 commit
-
-
KN4CK3R authored
Backport of #22186 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 13 Dec, 2022 1 commit
-
-
aceArt-GmbH authored
Backport of #22081 Co-authored-by:
KN4CK3R <admin@oldschoolhack.me>
-
- 12 Dec, 2022 1 commit
-
-
Lunny Xiao authored
Fix #22110
-
- 10 Dec, 2022 1 commit
-
-
KN4CK3R authored
Backport of #21862
-
- 04 Dec, 2022 1 commit
-
-
Lunny Xiao authored
Fix #21910 Backport #21921 Co-authored-by:
KN4CK3R <admin@oldschoolhack.me> Co-authored-by:
KN4CK3R <admin@oldschoolhack.me>
-
- 20 Nov, 2022 1 commit
-
-
KN4CK3R authored
Backport #21833
-
- 13 Nov, 2022 1 commit
-
-
Jason Song authored
Backport #21720. Fix #20921. The `ctx.Repo.GitRepo` has been used in deleting issues when the issue is a PR. Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
- 10 Nov, 2022 1 commit
-
-
Jason Song authored
Backport #21731. Fix #21698. Set the last login time to the current time when activating the user successfully. Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 09 Nov, 2022 3 commits
-
-
Wayne Starr authored
Backport (#21708) This addresses #21707 and adds a second package test case for a non-semver compatible version (this might be overkill though since you could also edit the old package version to have an epoch in front and see the error, this just seemed more flexible for the future). Co-authored-by:
KN4CK3R <admin@oldschoolhack.me>
-
Wayne Starr authored
Backport (#21568) This PR fixes issue #21567 allowing for package tarball URLs to match the upstream registry (and GitLab/JFrog Artifactory URLs). It uses a regex to parse the filename (which contains the NPM version) and does a fuzzy search to pull it out. The regex was built/expanded from http://json.schemastore.org/package, https://github.com/Masterminds/semver, and https://docs.npmjs.com/cli/v6/using-npm/semver and is testable here: https://regex101.com/r/OydBJq/5 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
Wayne Starr authored
Backport (#21690) Fixes #21683 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
KN4CK3R <admin@oldschoolhack.me>
-
- 30 Oct, 2022 1 commit
-
-
Jason Song authored
Backport #21619 . A patch to #17335. Just like AppPath, Gitea writes its own CustomConf into git hook scripts too. If Gitea's CustomConf changes, then the git push may fail. Co-authored-by:
techknowlogick <techknowlogick@gitea.io> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 28 Oct, 2022 1 commit
-
-
KN4CK3R authored
Backport of #21580 Co-authored-by:
Lauris BH <lauris@nix.lv> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 27 Oct, 2022 1 commit
-
-
Xinyu Zhou authored
Backport #21540 At the moment, If admin disable Packages, still show the Packages on the admin dashboard. This patch added a check to hide the Packages entry.
-
- 25 Oct, 2022 2 commits
-
-
KN4CK3R authored
Backport of #21504 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
eleith authored
backport of #21372 for v1.17.4 ------------------- npm package.json supports binary packaging: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#bin the npm registry documents that the binary references will be attached to the abbreviated version object: https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-version-object unfortunately their api documentation leaves this out: https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-version-objectdoc which is likely to be the reason this was left out in gitea's initial implementation this response is critical for npm to install the binary in the .bin folder so as to be included on the users default bin path, resulting in immediate access to any binaries provided by the package i have tested upload and installing through npm and can confirm the npm registry now responds with bin in the version metadata and results in the binary being available after install. this fixes https://github.com/go-gitea/gitea/issues/21303 Co-authored-by:
eleith <online-github@eleith.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 24 Oct, 2022 1 commit
-
-
Hubert Wawrzyńczyk authored
Backport of #21409 Co-authored-by:
techknowlogick <techknowlogick@gitea.io> Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
- 17 Oct, 2022 2 commits
-
-
KN4CK3R authored
Backport of #21400 Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
KN4CK3R authored
Backport of #21442
-
- 16 Oct, 2022 1 commit
-
-
Gusted authored
- Backport #21476 - Instead of returning a 500 Internal Server when the user wasn't found, return 404 Not found.
-
- 10 Oct, 2022 1 commit
-
-
KN4CK3R authored
Backport of #21275
-
- 08 Oct, 2022 2 commits
-
-
KN4CK3R authored
Backport of #21242 Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
6543 <6543@obermui.de>
-
M Hickford authored
Backport #21351 This fixes error "unauthorized_client: invalid client secret" when client includes secret in Authorization header rather than request body. OAuth spec permits both: https://www.rfc-editor.org/rfc/rfc6749#section-2.3.1 Clients in possession of a client password MAY use the HTTP Basic authentication scheme ... Alternatively, the authorization server MAY support including the client credentials in the request-body Sanity validation that client id and client secret in request are consistent with Authorization header. Improve error descriptions. Error codes remain the same. Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
zeripath <art27@cantab.net>
-
- 07 Oct, 2022 1 commit
-
-
Jason Song authored
Backport #21263. Before, a tag for a draft release disappeared in the tag list, fix #21262. Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
- 26 Sep, 2022 1 commit
-
-
KN4CK3R authored
Backport of #21229 Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 22 Sep, 2022 1 commit
-
-
wxiaoguang authored
The images used by Gitea's drone pipeline were upgraded to Go 1.19.x It causes the lint fails because Go 1.19 uses new code format. This PR partially backport #20758 (including the emoji-data sync), partially fix the format manually.
-
- 20 Sep, 2022 1 commit
-
-
KN4CK3R authored
Backport of #21095 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 17 Sep, 2022 1 commit
-
-
wxiaoguang authored
Backport #21189 Fixes #21184 Regression of #19552 Instead of using `GetBlobByPath`, use the already existing instances.
-
- 08 Sep, 2022 1 commit
-
-
Tyrone Yeh authored
backport #21109 Co-authored-by:
6543 <6543@obermui.de>
-
- 06 Sep, 2022 1 commit
-
-
zeripath authored
Backport #20925 This commit updates the `GET /api/v1/repos/{owner}/{repo}/archive/{archive}` endpoint which prior to this PR had a couple of issues. 1. The endpoint had a hard-coded 20s timeout for the archiver to complete after which a 500 (Internal Server Error) was returned to client. For a scripted API client there was no clear way of telling that the operation timed out and that it should retry. 2. Whenever the timeout _did occur_, the code used to panic. This was caused by the API endpoint "delegating" to the same call path as the web, which uses a slightly different way of reporting errors (HTML rather than JSON for example). More specifically, `api/v1/repo/file.go#GetArchive` just called through to `web/repo/repo.go#Download`, which expects the `Context` to have a `Render` field set, but which is `nil` for API calls. Hence, a `nil` pointer error. The code addresses (1) by dropping the hard-coded timeout. Instead, any timeout/cancelation on the incoming `Context` is used. The code addresses (2) by updating the API endpoint to use a separate call path for the API-triggered archive download. This avoids producing HTML-errors on errors (it now produces JSON errors). Signed-off-by:
Peter Gardfjäll <peter.gardfjall.work@gmail.com> Signed-off-by:
Peter Gardfjäll <peter.gardfjall.work@gmail.com> Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Peter Gardfjäll <peter.gardfjall.work@gmail.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 04 Sep, 2022 3 commits
-
-
zeripath authored
Backport #20981 When on /admin/users/ endpoints if the user is no longer in the DB, redirect instead of causing a http 500. Co-authored-by:
KN4CK3R <admin@oldschoolhack.me>
-
Jason Song authored
Backport #20961 The webhook payload should use the right ref when it‘s specified in the testing request. The compare URL should not be empty, a URL like `compare/A...A` seems useless in most cases but is helpful when testing.
-
zeripath authored
Backport #21011 When migrating add several more important sanity checks: * SHAs must be SHAs * Refs must be valid Refs * URLs must be reasonable Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 03 Sep, 2022 1 commit
-
-
José Carlos authored
Backport #21017 Set DevDependencies, PeerDependencies & OptionalDependencies in npm package metadatas Fix https://github.com/go-gitea/gitea/issues/21013
-
- 25 Aug, 2022 1 commit
-
-
zeripath authored
Backport #20886 Add code to test if GetAttachmentByID returns an ErrAttachmentNotExist error and return NotFound instead of InternalServerError Fix #20884 Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 23 Aug, 2022 2 commits
-
-
zeripath authored
Backport #20850 This patch fixes the issue that the mirror address field is ignored from the repo setting form. Co-authored-by:
Gary Wang <wzc782970009@gmail.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
KN4CK3R authored
* Allow file overwrite for meta files. * Added tests. * lint Co-authored-by:
Lauris BH <lauris@nix.lv> Co-authored-by:
techknowlogick <techknowlogick@gitea.io> Co-authored-by:
Lauris BH <lauris@nix.lv> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 22 Aug, 2022 1 commit
-
-
zeripath authored
Backport #20878 The go crypto library does not pad keyIDs to 16 characters with preceding zeroes. This is a somewhat confusing thing for most users who expect these to have preceding zeroes. This PR prefixes any sub 16 length KeyID with preceding zeroes and removes preceding zeroes from KeyIDs inputted on the API. Fix #20876 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-