Commit Graph

2002 Commits (release/v1.8)

Author SHA1 Message Date
Lunny Xiao 11f6ed4f83 fix api route (#7346) (#7347) 6 years ago
zeripath dbd0a2e6dc
Fix LFS Locks over SSH (#6999) (#7223)
* Fix LFS Locks over SSH
* Mark test as skipped
6 years ago
Lunny Xiao 10effb396a
if milestone id is zero don't get it from database (#7174) 6 years ago
Lanre Adelowo 5e97b2d00e archived repos can be starred and watched (#7163) (#7168) 6 years ago
Lunny Xiao 31ad8b7026 Fix wrong init dependency on markup extensions (#7038) (#7074)
* fix wrong init dependency on markup extensions
6 years ago
zeripath 8d5c3d3d0b
Install page - Handle invalid administrator username better (#7060) (#7063)
* Install page - detect invalid admin username before installing

* Also fix #6954
6 years ago
Lauris BH 608f46e59c
SearchRepositoryByName improvements and unification (#6897) (#7002)
* SearchRepositoryByName improvements and unification (#6897)

* Update tests

Co-Authored-By: zeripath <art27@cantab.net>

* Update tests

Co-Authored-By: zeripath <art27@cantab.net>

* Update tests

Co-Authored-By: zeripath <art27@cantab.net>

* Fix tests
6 years ago
techknowlogick e069a75817 Use AppURL for Oauth user link (#6894) (#6925) 6 years ago
Richard Mahn c8fc7fce4a Fixes #6881 - API users search fix (#6882) (#6885) 6 years ago
Lunny Xiao 5f20841bc3 Fix 404 when send pull request some situation (#6871) (#6873) 6 years ago
Lunny Xiao 476ca67cd4 fix config ui error about cache ttl (#6861) (#6865) 6 years ago
Lunny Xiao 96eb99ea55 fix 500 when reviewer is deleted with integration tests (#6856) (#6860) 6 years ago
ngourdon 7284829962 Fix team edit API panic (#6785)
* fix team edit API panic

* Change user to a member of the owner team
6 years ago
Lunny Xiao 81adf6ad86 Fix org visibility bug when git cloning (#6743) (#6762)
* fix org visibility bug

* fix permission check

* add integration tests

* fix tests

* change test user name for easier maintainance and fix test

* fix test git repo name
6 years ago
techknowlogick e6cd4f3276
OAuth2 token can be used in basic auth (#6747) (#6761) 6 years ago
Lunny Xiao 30226b4793 fix missing return (#6751) (#6756) 6 years ago
Lunny Xiao aecd9231ba Fix: Sort repos on org home page with non-admin login (#6741) (#6746) 6 years ago
Lunny Xiao 5f6b118007
Fix team members API (#6714) (#6729) 6 years ago
John Olheiser b1cb52e477 [API] Load issue attributes when editing an issue (#6723) (#6725) 6 years ago
techknowlogick ba12463175 backport #6674 - API OTP Context (#6676) 6 years ago
zeripath 66a3353c31 Properly escape on the redirect from the web editor (#6657) (#6667) 6 years ago
zeripath b9c5a3acc3 Return a UserList from /api/v1/admin/users (#6629) (#6642) 6 years ago
zeripath 40f41dc694
Correctly adjust mirror url (#6593) (#6594) 6 years ago
John Olheiser a63b9fbc70 Change summary to full message (#6591) (#6592)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6 years ago
Jonas Franz 72f4cdf868 Add option to disable refresh token invalidation (#6584) (#6587)
* Add option to disable refresh token invalidation

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add integration tests and remove wrong todos

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix typo

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix tests and add documentation

Signed-off-by: Jonas Franz <info@jonasfranz.software>

(cherry picked from commit 783cd64927)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
6 years ago
Lunny Xiao 5be1b7df3f fix bug user search API pagesize didn't obey ExplorePagingNum (#6579) (#6586) 6 years ago
Lauris BH 3b28de7d8e fix bug when user login and want to resend register confirmation email (#6482) (#6486) 6 years ago
Segev Finer e54f7a708c Fix Hook & HookList in Swagger (#6432) (#6440)
Backport from #6432
6 years ago
mrsdizzie 63f6764dce Clean up ref name rules (#6437) (#6439) 6 years ago
Allen Wild 0bf7ed55be routers/repo/setting: display correct error for invalid mirror interval (#6429)
Set Err_Interval in the context data so that the mirror interval box is
highlighted red as expected.

Clear Err_RepoName for the mirror and advanced actions. repo_name is not
set by these forms, causing auth.validate() to set the Err_RepoName
before SettingsPost is called, which would lead to the repository name
box getting erroneously highlighted red.

Fixes: https://github.com/go-gitea/gitea/issues/6396
6 years ago
mrsdizzie 3ce195115b Don't Unescape redirect_to cookie value (#6399) (#6401)
redirect_to holds a value that we want to redirect back to after login.
This value can be a path with intentonally escaped values and we
should not unescape it.

Fixes #4475
6 years ago
Lanre Adelowo 16815306ad make sure units of a team are returned (#6379) (#6381) 6 years ago
mrsdizzie ca46385637 Clean up various use of escape/unescape functions for URL generation (#6334)
* Use PathUnescape instead of QueryUnescape when working with branch names

Currently branch names with a '+' fail in certain situations because
QueryUnescape replaces the + character with a blank space.

Using PathUnescape should be better since it is defined as:

// PathUnescape is identical to QueryUnescape except that it does not
// unescape '+' to ' ' (space).

Fixes #6333

* Change error to match new function name

* Add new util function PathEscapeSegments

This function simply runs PathEscape on each segment of a path without
touching the forward slash itself. We want to use this instead of
PathEscape/QueryEscape in most cases because a forward slash is a valid name for a
branch etc... and we don't want that escaped in a URL.

Putting this in new file url.go and also moving a couple similar
functions into that file as well.

* Use EscapePathSegments where appropriate

Replace various uses of EscapePath/EscapeQuery with new
EscapePathSegments. Also remove uncessary uses of various
escape/unescape functions when the text had already been escaped or was
not escaped.

* Reformat comment to make drone build happy

* Remove no longer used url library

* Requested code changes
6 years ago
John Olheiser c55bdca562 Add same changes from issues page to milestone->issues page (#6328) 6 years ago
Bogdan Petrea 583968f274 Return 409 when creating repo if it already exists. (#6330) 6 years ago
Lunny Xiao 4334fe754e
update git vendor to fix wrong release commit id and add migrations (#6224)
* update git vendor to fix wrong release commit id and add migrations

* fix count

* fix migration release

* fix tests
6 years ago
Jonas Franz 2315019fef Add support for client basic auth for exchanging access tokens (#6293)
* Add support for client basic auth for exchanging access tokens

* Improve error messages

* Fix tests
6 years ago
Aidan Fitzgerald f5cf9a8355 Copyedit docs (#6275) 6 years ago
Jonas Franz 8fffb06168
Add regenerate secret feature for oauth2 (#6291)
* Add regenerate secret functionality

* Fix lint
6 years ago
John Olheiser 8211e01d9e Add unit types to repo action URL to correctly show 404 when archived (#6247)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6 years ago
Jonas Franz e777c6bdc6 Integrate OAuth2 Provider (#5378) 6 years ago
Lanre Adelowo 141c58f5a6 add isAdmin to user model (#6231)
update vendor and add tests

fix swagger
6 years ago
Lunny Xiao c812ba7f87
fix display dashboard even if require to change password (#6214)
* fix display dashboard even if require to change password

* fix comments
6 years ago
James E. Blair 48c101affe Create a repo redirect when transferring ownership (#6210) (#6211)
When transferring ownership of a repo to a different user/org,
create a repo redirect that points to the new location in the same
way that is done when a repo is renamed.

Signed-off-by: James E. Blair <jeblair@redhat.com>
6 years ago
John Olheiser 7548037a64 Adds MustChangePassword to user create/edit API, defaults to true (#6193)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6 years ago
Lunny Xiao 7afe81f28e fix bug when migrate repository 500 when repo is existed (#6188)
* fix bug when migrate repository 500 when repo is existed

* use 409 but not 422 for error status code when not exist

* translation fix
6 years ago
Lunny Xiao 4a2fbbeb10 fix bug user could change private repository to public when force private enabled. (#6156) 6 years ago
Lunny Xiao 134e55510e fix bug when update owner team then visit team's repo return 404 (#6119) 6 years ago
John Olheiser df30010dbd Make repo creation for API similar to UI (#6142) 6 years ago
zeripath 3b61ff1895 Allow display of LFS stored Readme.md on directory page (#6073) (#6099)
* Fix display of >1Kb LFS text files

* Make LFS stored Readme files viewable

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Slight restructure

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Slight restructure

Signed-off-by: Andrew Thornton <art27@cantab.net>

* catch errors and restructure LFS sections
6 years ago