summaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
* Fix branch page pull request title and link error (#10092) (#10098)Lunny Xiao2020-02-011-1/+1
| | | | | * Fix branch page pull request title and link error (#10092) * Fix tmpl
* Fix milestone API state parameter unhandled (#10049) (#10053)Lunny Xiao2020-01-302-2/+7
| | | | | | | | | | * Fix milestone API state parameter unhandled (#10049) * Fix milestone API state parameter unhandled * Fix test * Fix test
* Fix wiki raw view on sub path (#10002) (#10041)Lunny Xiao2020-01-282-18/+11
| | | | | | | | | | * Fix wiki raw view on sub path * Add test for subpath wiki raw file * Fix bug Co-authored-by: zeripath <art27@cantab.net>
* Prevent empty LDAP search from deactivating all users (#9879) (#9890)dioss-Machiel2020-01-201-0/+1
| | | | | | | | | * Backport of #9879 (Add option to prevent LDAP from deactivating everything on empty search) * go fmtted Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net>
* fix bug about wrong dependencies permissions check and other wr… (#9884)Lunny Xiao2020-01-206-43/+60
| | | | | | * fix bug about wrong dependencies permissions check and other wrong permissions check * improve code
* Ensure that 2fa is checked on reset-password (#9857) (#9877)zeripath2020-01-191-8/+75
| | | | | | | | | | | | | | * Ensure that 2fa is checked on reset-password * Apply suggestions from code review Co-Authored-By: Lauris BH <lauris@nix.lv> * Properly manage scratch_code regeneration Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
* fix (#9838)65432020-01-171-1/+7
|
* Fix download file wrong content-type (#9825) (#9835)Lunny Xiao2020-01-171-1/+7
| | | | | | | | | | * Fix download file wrong content-type * change the error text to be more precise * fix test Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix wrong identify poster on a migrated pull request when submi… (#9827) ↵Lunny Xiao2020-01-171-3/+1
| | | | (#9831)
* Fix compare (#9808) (#9815)Lunny Xiao2020-01-171-24/+20
| | | | | | Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: techknowlogick <matti@mdranta.net>
* Fix missing msteam webhook on organization (#9781) (#9795)Lunny Xiao2020-01-161-1/+3
|
* Fix #9662 (#9783)David Svantesson2020-01-161-1/+1
|
* Hide credentials when submitting migration (#9102) (#9704)Lauris BH2020-01-111-1/+1
| | | | | | | through API. Same fix, using form.CloneAddr instead of opts.CloneAddr. Co-authored-by: Jordan <eatsleepgame@gmail.com>
* Fix cache problem on dashboard (#9358) (#9703)Lauris BH2020-01-111-0/+2
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Branches not at ref commit ID should not be listed as Merged (#9614) (#9639)zeripath2020-01-083-31/+97
| | | | | | | | | | | Once a branch has been merged if the commit ID no longer equals that of the pulls ref commit id don't offer to delete the branch on the pull screen and don't list it as merged on branches. Fix #9201 When looking at the pull page we should also get the commits from the refs/pulls/x/head Fix #9158
* [BugFix] Hide public repos owned by private orgs (#9616)65432020-01-061-0/+1
|
* [Backport] [API] Allow only specific Colums to be updated on Issue (#9539) ↵65432020-01-022-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | (#9580) * Fix #9189 - API Allow only specific Colums to be updated on Issue (#9539) * dont insert "-1" in any case to issue.poster_id * Make sure API cant override importand fields * code format * add Test for IssueEdit * load milestone and return it on IssueEdit via API * extend Test for TestAPIEditIssue * fix TEST * make sure Poster is loaded * keep code format on backport as it is
* [Backport] Fix bug when migrate from API (#8631) (#9563)65432020-01-021-7/+24
| | | | | | | | | | | | | | | | | | | | * Fix bug when migrate from API (#8631) * fix bug when migrate from API * fix test * fix test * improve * fix error message * Update routers/api/v1/repo/repo.go * remove unrelated Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* fix 500 error for ghost avatar (#9537)65432019-12-301-7/+13
|
* Fix repository issues pagination bug when there are more than one label ↵Lunny Xiao2019-12-281-1/+2
| | | | | | | | filter (#9512) (#9528) * Fix repository issues pagination bug when there are more than one label filter (#9512) * fix merge
* Fix missing repository status when migrating repository via API (#9511)Lunny Xiao2019-12-271-3/+26
| | | | | | * Fix API migration wrong repository status * Force push for ci
* when branch is deleted after a pull request is merged, trigger webhook (#9510)Brad Albright2019-12-271-0/+16
|
* Fix NewCommitStatus (#9434) (#9435)John Olheiser2019-12-191-2/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Properly fix displaying virtual session provider in admin panel (#9137) (#9203)65432019-11-291-7/+7
| | | | | | | | | | | | | | * Properly fix #7147 Although #7300 properly shadows the password from the virtual session provider, the template displaying the provider config still presumed that the config was JSON. This PR updates the template and properly hides the Virtual Session provider. Fixes #7147 * update per @silverwind's suggestion
* backport v1.10 - Always show Password field on link account sign in page (#9150)Benno2019-11-241-0/+1
|
* Create PR on Current Repository by Default (#8670) (#9141)guillep2k2019-11-241-0/+28
| | | | | | | | | | | | | * 'update' * Send push tag event when release created * send tag create event while release created in UI * update to go v1.13 * fix gofmt error * fix #8576 create pull request on current repository by default
* Backport: Hide given credentials for migrated repos. (#9098)Jordan2019-11-201-0/+1
| | | | CloneAddr was being used as OriginalURL. Now passing OriginalURL through from the form and saving it.
* Backport: Fix password checks on admin create/edit user (#9076) (#9081)guillep2k2019-11-201-3/+14
| | | | | | * Fix password checks on admin create/edit user * Remove incorrect trimspace
* fix wrong system notice when repository is empty (#9020)Lunny Xiao2019-11-151-0/+5
|
* Shadow password correctly for session config (#8984) (#9002)zeripath2019-11-141-9/+17
| | | | | | | Fix #8718 This PR shadows passwords in session config correctly by detecting the VirtualProvider, unmarshalling the original config and then shadowing config within that.
* Hotfix for review actions and notifications (#8965)guillep2k2019-11-141-4/+6
|
* Add Close() method to gogitRepository (#8901) (#8956)zeripath2019-11-1313-3/+114
| | | | | | | | | | | Backport #8901 In investigating #7947 it has become clear that the storage component of go-git repositories needs closing. This PR adds this Close function and adds the Close functions as necessary. In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files. Fixes #7947
* Backport: Fix password complexity check on registration (#8887) (#8888)guillep2k2019-11-091-0/+5
| | | | | | * Fix registration password complexity * Fix integration to use a complex password ;)
* Backport: Fix require external registration password (#8885) (#8890)guillep2k2019-11-091-3/+3
| | | | | | * Fix require external registration password * Fix ctx on error condition by @jolheiser
* Fix new user form for non-local users (#8826) (#8828)Lauris BH2019-11-051-9/+11
|
* Fix deadline on update issue or PR via API (#8698)David Svantesson2019-10-282-16/+14
|
* Fix 500 when getting user as unauthenticated user (#8653) (#8663)Monty Taylor2019-10-251-1/+1
| | | | | | | | | Backport #8653 When doing GET /api/v1/users/{user} as an unauthenticated user, gitea throws a 500 because it's trying to dereference elements from the context user. It wants to do this to see whether to show the primary email and will do that if the logged in user is admin or the user in question. However, if ctx.User is nil there is a panic
* Hide some user information via API if user have no enough permission (#8655) ↵Lunny Xiao2019-10-241-4/+4
| | | | | | | (#8657) * Hide some user information via API if user have no enough permission * fix test
* Use AppSubUrl for more redirections (#8647) (#8651)zeripath2019-10-231-1/+1
| | | | | | Partial backport without changes to locale files. Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template Fixes /explore and organisation redirection
* Fix template error on account page (#8562) (#8622)John Olheiser2019-10-221-1/+1
|
* Fix bug on pull requests when transfer head repository (#8564) (#8569)Lunny Xiao2019-10-192-26/+24
| | | | | | | * fix bug on pull requests when transfer head repository * add migration and fix lint * fix tests and add a cache check on LoadBaseRepo
* Add missed close in ServeBlobLFS (#8527) (#8542)zeripath2019-10-161-0/+5
|
* Fix password complexity regex for special characters (backport for v1.10.0) ↵guillep2k2019-10-163-27/+15
| | | | | | | | | | | | | | | | | | | | | | (#8524) * Fix extra space * Fix regular expression * Fix error template name * Simplify check code, fix default values, add test * Fix router tests * Fix fmt * Fix setting and lint * Move cleaning up code to test, improve comments * Tidy up variable declaration
* Fix errors in create org UI regarding team access permission. (#8506)David Svantesson2019-10-141-4/+5
|
* Password Complexity Checks (#6230)Maxim Tkachenko2019-10-145-27/+92
| | | | | | | | | Add password complexity checks. The default settings require a lowercase, uppercase, number and a special character within passwords. Co-Authored-By: T-M-A <maxim.tkachenko@gmail.com> Co-Authored-By: Lanre Adelowo <adelowomailbox@gmail.com> Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update migrated repositories' issues/comments/prs poster id if user has a ↵Lunny Xiao2019-10-142-51/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | github external user saved (#7751) * update migrated issues/comments when login as github * add get userid when migrating or login with github oauth2 * fix lint * add migrations for repository service type * fix build * remove unnecessary dependencies on migrations * add cron task to update migrations poster ids and fix posterid when migrating * fix lint * fix lint * improve code * fix lint * improve code * replace releases publish id to actual author id * fix import * fix bug * fix lint * fix rawdata definition * fix some bugs * fix error message
* Move migrating repository from frontend to backend (#6200)Lunny Xiao2019-10-136-43/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move migrating to backend * add loading image when migrating and fix tests * fix format * fix lint * add redis task queue support and improve docs * add redis vendor * fix vet * add database migrations and fix app.ini sample * add comments for task section on app.ini.sample * Update models/migrations/v84.go Co-Authored-By: lunny <xiaolunwen@gmail.com> * Update models/repo.go Co-Authored-By: lunny <xiaolunwen@gmail.com> * move migrating to backend * add loading image when migrating and fix tests * fix fmt * add redis task queue support and improve docs * fix fixtures * fix fixtures * fix duplicate function on index.js * fix tests * rename repository statuses * check if repository is being create when SSH request * fix lint * fix template * some improvements * fix template * unified migrate options * fix lint * fix loading page * refactor * When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration * fix js * Update models/repo.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * fix tests * rename ErrTaskIsNotExist to ErrTaskDoesNotExist * delete release after add one on tests to make it run happy * fix tests * fix tests * improve codes * fix lint * fix lint * fix migrations
* Move change issue title from models to issue service package (#8456)Lunny Xiao2019-10-111-1/+1
| | | | | | | | * move change issue title from models to issue service package * make the change less * fix typo
* Check for either escaped or unescaped wiki filenames (#8408)Tekaoh2019-10-091-0/+12
| | | | | | | | | | | | * Check for either escaped or unescaped wiki filenames + Gitea currently saves wiki pages with escaped filenames. + Wikis mirrored from other places like Github use unescaped filenames. + We need to be checking for filenames in either format to increase compatibility. * Better logic for escaped and unescaped wiki filenames Co-Authored-By: null <guillep2k@users.noreply.github.com>
* Allow users with explicit read access to give approvals (#8382)guillep2k2019-10-081-2/+2
|