summaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorsinguliere <35190819+singuliere@users.noreply.github.com>2022-05-05 16:39:26 +0100
committerGitHub <noreply@github.com>2022-05-05 11:39:26 -0400
commitb536b65189319544939da9b6537919a4fc838d71 (patch)
tree038dd21a1f8082aa6020f891c1d8811e522852ea /models/fixtures
parent04fc4b7e05bfbfee6cb7aa4f6c30d1af6f2d4d2d (diff)
downloadgitea-b536b65189319544939da9b6537919a4fc838d71.tar.gz
gitea-b536b65189319544939da9b6537919a4fc838d71.zip
GetFeeds must always discard actions with dangling repo_id (#19598)
* GetFeeds must always discard actions with dangling repo_id See https://discourse.gitea.io/t/blank-page-after-login/5051/12 for a panic in 1.16.6. * add comment to explain the dangling ID in the fixture * loadRepoOwner must not attempt to use a nil action.Repo * make fmt Co-authored-by: Loïc Dachary <loic@dachary.org>
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/action.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/models/fixtures/action.yml b/models/fixtures/action.yml
index e283b01db2..a75092feb0 100644
--- a/models/fixtures/action.yml
+++ b/models/fixtures/action.yml
@@ -56,3 +56,11 @@
repo_id: 8 # public
is_private: false
created_unix: 1603011540 # grouped with id:7
+
+- id: 8
+ user_id: 1
+ op_type: 12 # close issue
+ act_user_id: 1
+ repo_id: 1700 # dangling intentional
+ is_private: false
+ created_unix: 1603011541