]>
source.dussan.org Git - gitea.git/log
Jonas Franz [Fri, 4 Jan 2019 18:14:28 +0000 (19:14 +0100)]
Add changelog for 1.6.3 (#5637)
* Add changelog for 1.6.3 and 1.7.0-rc2
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Remove 1.7.0 entries
Signed-off-by: Jonas Franz <info@jonasfranz.software>
zeripath [Fri, 4 Jan 2019 16:29:36 +0000 (16:29 +0000)]
SECURITY: protect DeleteFilePost et al with cleanUploadFileName (#5631) (#5634)
This commit wraps more of the TreePaths with cleanUploadFileName
Signed-off-by: Andrew Thornton <art27@cantab.net>
Harshit Bansal [Mon, 31 Dec 2018 16:52:06 +0000 (22:22 +0530)]
Fix wrong text getting saved on editing second comment on an issue. (#5608) (#5615)
* comments: Fix an incorrent DOM element selection.
This commit fixes a bug that was causing text from previously edited
comment to get saved when two comments were edited one after other.
Text area with id of `#content` isn't unique on the page but it was
being treated as unique by the event handling code.
Fixes: #5581.
* templates: Remove `id` from textarea in commit edit form.
An element is assigned an `id` only if it is unique for the whole page
but in this case there can be multiple textarea so it should have one.
techknowlogick [Fri, 21 Dec 2018 15:08:46 +0000 (10:08 -0500)]
Changelog for 1.6.2 (#5567)
techknowlogick [Fri, 21 Dec 2018 14:05:47 +0000 (09:05 -0500)]
Immediate fix to htmlEncode user added text (#5575)
There are likely problems remaining with the way that initCommentForm
is creating its elements. I suspect that a malformed avatar url could
be used maliciously.
techknowlogick [Fri, 21 Dec 2018 08:22:56 +0000 (03:22 -0500)]
backport 5571 (#5573)
Lunny Xiao [Wed, 19 Dec 2018 14:51:53 +0000 (22:51 +0800)]
fix indexer reindex bug when gitea restart (#5563) (#5564)
* fix issue indexer bug reindex when restart gitea
* also fix code indexer reindex when gitea restart
Greg Karékinian [Thu, 13 Dec 2018 15:42:38 +0000 (16:42 +0100)]
Backport #5537 Remove a double slash in the HTTPS redirect with Let's Encrypt (#5539)
Before:
$ curl 0.0.0.0:3001
<a href="https://gitea.example.com:3000//">Found</a>.
After:
$ curl 0.0.0.0:3001
<a href="https://gitea.example.com:3000/">Found</a>.
Fixes #5536
Lunny Xiao [Wed, 12 Dec 2018 17:37:22 +0000 (01:37 +0800)]
fix bug when a read perm user to edit his issue (#5516) (#5534)
Lunny Xiao [Wed, 12 Dec 2018 14:49:47 +0000 (22:49 +0800)]
fix detect force push failure on deletion of protected branches (#5522) (#5531)
Greg Karékinian [Tue, 11 Dec 2018 18:34:35 +0000 (19:34 +0100)]
Backported #5525 Fix the Let's Encrypt handler (#5527)
* Fix the Let's Encrypt handler by listening on a valid address
Also handle errors in the HTTP server go routine, return a fatal error
when something goes wrong.
Thanks to @gbl08ma for finding the actual bug
Here is an example of the error handling:
2018/12/11 14:23:07 [....io/gitea/cmd/web.go:87 func1()] [E] Failed to
start the Let's Encrypt handler on port 30: listen tcp 0.0.0.0:30: bind:
permission denied
Closes #5280
* Fix a typo
Lunny Xiao [Tue, 11 Dec 2018 11:09:53 +0000 (19:09 +0800)]
fix forgot deletion of notification when delete repository (#5506) (#5514)
Lunny Xiao [Tue, 11 Dec 2018 02:33:20 +0000 (10:33 +0800)]
fix undeleted content when deleting user (#5509)
Lunny Xiao [Mon, 10 Dec 2018 20:37:56 +0000 (04:37 +0800)]
Fix empty wiki (#5504) (#5508)
* fix wiki page when wiki path is exist but empty
* improve the error check
techknowlogick [Sun, 9 Dec 2018 13:06:16 +0000 (08:06 -0500)]
Add 1.6.1 changelog (#5500)
Lunny Xiao [Sun, 9 Dec 2018 00:57:49 +0000 (08:57 +0800)]
fix topic name length on database (#5493) (#5495)
romankl [Sun, 2 Dec 2018 22:50:47 +0000 (23:50 +0100)]
ensure that the `closed_at` is set for closed (#5450)
right now the `closed_at` field for json responses is not filled during
the `APIIssue` creation for api responses.
For a closed issue you get a result like:
```json
"state":"open","comments":0,"created_at":"2018-11-29T16:39:24+01:00",
"updated_at":"2018-11-30T10:49:19+01:00","closed_at":null,
"due_date":null,"pull_request":null}
```
which has no information about the closing date. (which exists in the
db and ui)
with this PR the result changes to this:
```json
:null,"assignee":null,"assignees":null,
"state":"closed",
"comments":0,"created_at":"2018-11-29T16:43:05+01:00",
"updated_at":"2018-12-02T19:17:05+01:00",
"closed_at":"2018-12-02T19:17:05+01:00",
"due_date":null,"pull_request":null}
```
fixes: https://github.com/go-gitea/gitea/issues/5446
Signed-off-by: Roman <romaaan.git@gmail.com>
Lanre Adelowo [Sun, 2 Dec 2018 18:07:20 +0000 (19:07 +0100)]
Admin should be able to delete repos even if he is not a member of the organization (#5443) (#5447)
romankl [Sun, 2 Dec 2018 15:47:45 +0000 (16:47 +0100)]
word-break the WebHook url to prevent a ui-break (#5445)
right now, the url is displayed with an anchor tag with no classes. If
the url is really really long, the url will break out of the containing
div and (depending on the url length) the browser shows the horizontal
scrollbar.
This pr makes use of the already existing css class `dont-break-out`
which gives all the anchor the necessary properties to prevent the
break.
Another solution could be to introduce some classes like
`text text-break-word`, but that would duplicate the `dont-break-out`
class just for text elements that use the `text` class.
fixes: https://github.com/go-gitea/gitea/issues/5416
Signed-off-by: Roman <romaaan.git@gmail.com>
Lunny Xiao [Fri, 30 Nov 2018 14:38:35 +0000 (22:38 +0800)]
Fix repository deletion when there is large number of issues in it (#5426) (#5434)
Lauris BH [Mon, 26 Nov 2018 00:27:17 +0000 (02:27 +0200)]
Fix dependent issue searching when gitea is run in subpath (#5392) (#5400)
Daniel Balko [Sat, 24 Nov 2018 11:14:27 +0000 (12:14 +0100)]
Backported #5383 on v1.6: API: '/orgs/:org/repos': return private repos with read access (#5310) (#3829) (#5393)
Signed-off-by: Daniel Balko <inxonic+github@gmail.com>
Lunny Xiao [Fri, 23 Nov 2018 03:53:58 +0000 (11:53 +0800)]
add changelog of v1.6.0 (#5379)
* add changelog of v1.6.0
* improve changelog
Lunny Xiao [Wed, 21 Nov 2018 15:12:17 +0000 (23:12 +0800)]
dont' send assign webhooks when creating issue (#5365) (#5369)
Florian Eitel [Sun, 18 Nov 2018 20:34:14 +0000 (21:34 +0100)]
Migration fixes 5318 1.6 backport (#5355)
* Remove field from migration to support upgrades from older version
That will ensure the field does not get queried in the Select if it does
not exist yet:
```
[I] [SQL] SELECT "id", "repo_id", "index", "poster_id", "name", "content", "milestone_id", "priority", "assignee_id", "is_closed", "is_pull", "num_comments", "ref", "deadline_unix", "created_unix", "updated_unix
[...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: pq: column "ref" does not exist
```
see #5318
* Skip remove stale watcher migration if not required
Otherwise the migration will fail if executed from a older database
version without multiple IssueWatch feature.
```
2018/11/11 23:51:14 [I] [SQL] SELECT DISTINCT "issue_watch"."user_id", "issue"."repo_id" FROM "issue_watch" INNER JOIN issue ON issue_watch.issue_id = issue.id WHERE (issue_watch.is_watching = $1) LIMIT 50 []int
[...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: pq: relation "issue_watch" does not exist
```
see #5318
Lunny Xiao [Sun, 11 Nov 2018 17:43:56 +0000 (01:43 +0800)]
Fix create team, update team missing units (#5188) (#5313)
Lauris BH [Sat, 10 Nov 2018 14:12:58 +0000 (16:12 +0200)]
Fix file edit change preview functionality (#5300) (#5311)
Lunny Xiao [Fri, 9 Nov 2018 09:46:38 +0000 (17:46 +0800)]
fix bug when users have serval teams with different units on different repositories (#5307) (#5308)
Lauris BH [Fri, 9 Nov 2018 05:45:50 +0000 (07:45 +0200)]
Fix U2F if gitea is configured in subpath (#5302) (#5306)
Lauris BH [Thu, 8 Nov 2018 22:47:24 +0000 (00:47 +0200)]
Fix markdown image with link (#4675) (#5299)
* Fix markdown image with link
* Add gitea copyright notice
* add a test for markdown image with link
* remove svg related variables
Lauris BH [Thu, 8 Nov 2018 22:20:10 +0000 (00:20 +0200)]
Add changelog for 1.5.3 release (#5227) (#5298)
Lauris BH [Wed, 7 Nov 2018 07:14:44 +0000 (09:14 +0200)]
Remove maxlines option for file logger (#5282) (#5287)
Lauris BH [Wed, 7 Nov 2018 04:50:52 +0000 (06:50 +0200)]
Backport fix broken translation (#5284)
techknowlogick [Sun, 4 Nov 2018 22:07:08 +0000 (17:07 -0500)]
1.6.0-RC2 Changelog (#5275)
zeripath [Sun, 4 Nov 2018 15:42:15 +0000 (15:42 +0000)]
Backport #5250 on v1.6: Fix Issue 5249 and protect /api/v1/admin routes with CSRF token (#5272)
* Add CSRF checking to reqToken and place CSRF in the post for deadline creation
Fixes #5226, #5249
* /api/v1/admin/users routes should have reqToken middleware
kolaente [Sat, 3 Nov 2018 21:43:11 +0000 (22:43 +0100)]
Backported wrong api request url for instances running in subfolders (#5247) (#5261)
Peter Hoffmann [Thu, 1 Nov 2018 15:24:23 +0000 (16:24 +0100)]
fix: Accept web-command cli flags if web-command is commited (#5245)
* Added flags of default cmd CmdWeb to app-wide flags
* If command *is* specified app-wide flags are ignored
Backport of #5200
Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>
Lunny Xiao [Thu, 1 Nov 2018 00:21:31 +0000 (08:21 +0800)]
This commit will reduce join star, repo_topic, topic tables on repo search, so that fix extra columns problem on mssql (#5136) (#5229)
* This commit will reduce join star, repo_topic, topic tables on repo search, so that fix extra columns problem on mssql
* fix tests
Lunny Xiao [Wed, 31 Oct 2018 12:23:13 +0000 (20:23 +0800)]
fix data race on migrate repository (#5224) (#5230)
Peter Hoffmann [Tue, 30 Oct 2018 15:14:12 +0000 (16:14 +0100)]
fix: Add secret to all webhook's payload where it has been missing (#5208)
* Updated dependency manager via `dep ensure -update code.gitea.io/sdk`
* Gopkg.toml was not changed as sdk version is set to "master"
* affects webhooks for: Delete, Fork, IssueComment, Release
* also contains changes from go-gitea/go-sdk#125 and hence a swagger update
Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de>
Resolves: #4732, #5173
Lunny Xiao [Tue, 30 Oct 2018 06:21:55 +0000 (14:21 +0800)]
fix sqlite lock (#5210) (#5223)
Kim "BKC" Carlbäcker [Tue, 30 Oct 2018 05:36:50 +0000 (06:36 +0100)]
Update go-macaron/session to latest mast to fix RCE-bug (#5195)
Lunny Xiao [Tue, 30 Oct 2018 01:20:18 +0000 (09:20 +0800)]
Fix race on updatesize (#5190) (#5215)
* fix race on updatesize
* fix more repoPath
Rodrigo Villablanca Vásquez [Mon, 29 Oct 2018 19:56:21 +0000 (16:56 -0300)]
fix to 3819 - Backport (#5219)
Lunny Xiao [Mon, 29 Oct 2018 18:10:51 +0000 (02:10 +0800)]
fix sqlite and mssql lock (#5214) (#5218)
Lunny Xiao [Thu, 25 Oct 2018 14:30:25 +0000 (22:30 +0800)]
Fix sqlite lock (#5176) (#5179)
* fix sqlite lock
* fix sqlite lock on getUnitType
Jonas Franz [Tue, 23 Oct 2018 14:38:06 +0000 (16:38 +0200)]
Add comment replies (#5147)
* Add comment replies
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Use review.ID instead
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Filip Navara [Mon, 22 Oct 2018 18:46:47 +0000 (20:46 +0200)]
Fix SQL quoting (#5137)
`show` is keyword in MySQL and has to be quoted to reference a column name. Use grave accents (ASCII code 96) for quoting to match rest of the source code. It's non-standard SQL, but it's supported by SQLite and MySQL.
Signed-off-by: Filip Navara <navara@emclient.com>
kolaente [Thu, 18 Oct 2018 01:57:35 +0000 (03:57 +0200)]
Fix regex to support optional end line of old section in diff hunk (#5097)
+ Named groups in reges for easier group parsing
BetaCat [Wed, 17 Oct 2018 18:19:04 +0000 (02:19 +0800)]
ZH-CN translation of Usage part (#5086)
GiteaBot [Wed, 17 Oct 2018 17:07:45 +0000 (17:07 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Wed, 17 Oct 2018 17:05:49 +0000 (01:05 +0800)]
Add change log for 1.6.0-rc1 (#5095)
* add change log for 1.6.0-rc1
* Fix some uppercases
GiteaBot [Wed, 17 Oct 2018 11:23:21 +0000 (11:23 +0000)]
[skip ci] Updated translations via Crowdin
BetaCat [Wed, 17 Oct 2018 11:21:20 +0000 (19:21 +0800)]
ZH-CN translation of Advanced part (#5090)
Lauris BH [Tue, 16 Oct 2018 20:50:11 +0000 (23:50 +0300)]
Update process to include tag vX.Y.0-dev on master branch (#5091)
BetaCat [Mon, 15 Oct 2018 04:13:21 +0000 (12:13 +0800)]
CN translation of README (#5050)
Lunny Xiao [Mon, 15 Oct 2018 03:52:52 +0000 (11:52 +0800)]
fix release creation via API (#5076)
* fix release creation via API
* fix release create tests
Lauris BH [Fri, 12 Oct 2018 20:49:27 +0000 (23:49 +0300)]
Fix dep for actual goth version used in dep lock file (#5078)
Lauris BH [Fri, 12 Oct 2018 20:01:41 +0000 (23:01 +0300)]
Fix golint to new URL (#5079)
SagePtr [Wed, 10 Oct 2018 14:13:34 +0000 (16:13 +0200)]
Fixed spelling typos in CONTRIBUTING.md (#5061)
techknowlogick [Tue, 9 Oct 2018 21:08:59 +0000 (17:08 -0400)]
Add HOWTO for releasing Gitea (#5054)
* Add HOWTO for releasing Gitea
Used instructions from: https://github.com/go-gitea/gitea/pull/2609#issuecomment-
352159155
* Update CONTRIBUTING.md
techknowlogick [Tue, 9 Oct 2018 16:29:08 +0000 (12:29 -0400)]
Backport 1.5.2 changelog (#5053)
Lauris BH [Tue, 9 Oct 2018 00:46:23 +0000 (03:46 +0300)]
Fix adding review comment in split view (#5038)
SagePtr [Sat, 6 Oct 2018 21:20:48 +0000 (23:20 +0200)]
Remove links from topics in edit mode (#5026)
SagePtr [Fri, 5 Oct 2018 23:41:09 +0000 (01:41 +0200)]
Fix missing AppSubUrl in few more templates (#5021)
SagePtr [Fri, 5 Oct 2018 17:22:33 +0000 (19:22 +0200)]
Fix missing AppSubUrl in some templates (#5020)
Jonas Franz [Fri, 5 Oct 2018 15:49:30 +0000 (17:49 +0200)]
Hide outdated comments in file view (#5017)
* Hide outdated comments in file view
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add unit test by adding "invalidated" comment to fixtures
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Chih-Hsuan Yen [Fri, 5 Oct 2018 09:06:47 +0000 (17:06 +0800)]
Fix a typo in app.ini.sample (#5015)
Dane [Wed, 3 Oct 2018 14:16:48 +0000 (15:16 +0100)]
Add missing envionment vars for DB with Docker (#5007)
Current docs demonstrate how to configure a database container but don't
explicitly specify that you should add additional environment variables
to the Gitea container to make it use the database. This just
demonstrates the changes required.
Signed-off-by: Dane Elwell <dane.elwell@ukfast.co.uk>
AJ ONeal [Wed, 3 Oct 2018 06:33:46 +0000 (00:33 -0600)]
README: update make command to build full release (#5004)
* update make command to build full release
* use quoted TAGS
`TAGS=bindata` => `TAGS="bindata"`
GiteaBot [Tue, 2 Oct 2018 19:22:42 +0000 (19:22 +0000)]
[skip ci] Updated translations via Crowdin
Mura Li [Tue, 2 Oct 2018 19:20:02 +0000 (03:20 +0800)]
Upgrade gopkg.in/testfixtures.v2 (#4999)
GiteaBot [Sat, 29 Sep 2018 22:45:10 +0000 (22:45 +0000)]
[skip ci] Updated translations via Crowdin
Lauris BH [Sat, 29 Sep 2018 22:44:06 +0000 (01:44 +0300)]
Disable debug routes unless PPROF is enabled in configuration (#4995)
SagePtr [Sat, 29 Sep 2018 09:57:32 +0000 (11:57 +0200)]
Fix #rrggbbaa color to rgba for better browser compatibility (#4990)
Lauris BH [Sat, 29 Sep 2018 08:33:54 +0000 (11:33 +0300)]
Detect charset and convert non UTF-8 files for display (#4950)
* Detect charset and convert non UTF-8 files for display
* Refactor and move function to correct module
* Revert unrelated changes
* More unrelated changes
* Duplicate content for small text to have better encoding detection
* Check if original content is valid before duplicating it
Iwasa Kazmi [Sat, 29 Sep 2018 06:28:47 +0000 (15:28 +0900)]
Fix layout of the topics editing form (#4971)
* Fix layout of the topic edit.
- made right-hand column wider so that it has enough space for "Done" button.
- fixed issue that jQuery's .show() breaks functionality of the Semantic UI Grid.
* Improve switching visibility of the topic edit
Changes to support old browsers that doesn't support 'flex' keyword.
- Removed style "display: none" from index.css so that
the grid can be displayed without specifying new "display" style.
- Added style "display:none" to the grid element in HTML template
as the initial style.
- In index.js, visibility of the grid element is changed by
set "display:none" style to the element or removing it from the element.
Lanre Adelowo [Fri, 28 Sep 2018 03:59:46 +0000 (04:59 +0100)]
make sure milestone listing is consistent across board (#4987)
silverwind [Thu, 27 Sep 2018 20:58:38 +0000 (22:58 +0200)]
Fix user menu item styling (#4985)
GiteaBot [Thu, 27 Sep 2018 00:51:27 +0000 (00:51 +0000)]
[skip ci] Updated translations via Crowdin
flufmonster [Thu, 27 Sep 2018 00:50:10 +0000 (20:50 -0400)]
Adjust maintainers (#4979)
GiteaBot [Tue, 25 Sep 2018 12:37:54 +0000 (12:37 +0000)]
[skip ci] Updated translations via Crowdin
Lauris BH [Tue, 25 Sep 2018 12:36:45 +0000 (15:36 +0300)]
Fix preview when adding new code review comment (#4975)
zeripath [Fri, 21 Sep 2018 08:56:26 +0000 (09:56 +0100)]
Update Swagger API to match the return of /users/search (#4847)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Wyall [Fri, 21 Sep 2018 01:43:31 +0000 (03:43 +0200)]
ADD: Hint to function of docker version tags (#4967)
I wasn't sure about how tags work, maybe this is interesting for people with less knowledge of docker.
OvermindDL1 [Thu, 20 Sep 2018 19:17:34 +0000 (13:17 -0600)]
Fix #4877 to follow the OpenID Connect Audiences spec (#4878)
Signed-off-by: Gabriel Robertson <overminddl1@gmail.com>
GiteaBot [Thu, 20 Sep 2018 05:50:04 +0000 (05:50 +0000)]
[skip ci] Updated translations via Crowdin
SagePtr [Thu, 20 Sep 2018 05:49:07 +0000 (07:49 +0200)]
Fix null pointer dereference in ParseCommitWithSignature (#4962)
GiteaBot [Wed, 19 Sep 2018 09:03:30 +0000 (09:03 +0000)]
[skip ci] Updated translations via Crowdin
bugreport0 [Wed, 19 Sep 2018 09:02:08 +0000 (11:02 +0200)]
Fix interpunction in English translation. (#4958)
GiteaBot [Tue, 18 Sep 2018 07:05:46 +0000 (07:05 +0000)]
[skip ci] Updated translations via Crowdin
crito [Tue, 18 Sep 2018 07:04:46 +0000 (09:04 +0200)]
fix url in discord webhook (#4953)
opening issues generates a webhook to discord that contains
a url to the gitea api. the message title in discord is therefore
referencing to the api instead of the issue itself.
Lauris BH [Mon, 17 Sep 2018 14:59:49 +0000 (17:59 +0300)]
Code review UI improvements and bugfixes (#4682)
* Code review UI improvements
* More fixes to dark theme
* Style fix
* Fix to allow add code review comments only on review files tab
* More readability dark style fixes
* Fix commenting on deleted files. Fixes #4752
* Fix line blame getting for multiple corner cases
nubenum [Sun, 16 Sep 2018 22:28:23 +0000 (00:28 +0200)]
Fix some issues with special chars in branch names (#3767)
Signed-off-by: Robin Durner <github@nubenum.de>
Lanre Adelowo [Sun, 16 Sep 2018 15:27:43 +0000 (16:27 +0100)]
make sure to catch the right error so it is displayed as an error on the ui not a 500 (#4945)
Bo-Yi Wu [Sat, 15 Sep 2018 10:32:59 +0000 (18:32 +0800)]
fix(topics): don't redirect to expole page. (#4938)
GiteaBot [Sat, 15 Sep 2018 06:30:00 +0000 (06:30 +0000)]
[skip ci] Updated translations via Crowdin
Girish Ramakrishnan [Sat, 15 Sep 2018 06:28:53 +0000 (23:28 -0700)]
doc: add Cloudron package (#4937)
Fixes #4936
Lanre Adelowo [Thu, 13 Sep 2018 16:34:36 +0000 (17:34 +0100)]
Allow admin toggle forcing a password change for newly created users (#4563)
linweijie2012 [Thu, 13 Sep 2018 14:58:01 +0000 (22:58 +0800)]
fix bug forget to remove Stopwatch when remove repository (#4928)