Closed
Description
Description
Reproduction steps:
- Create user1 and user2
- user1 creates a repository "example"
- user2 forks it and makes some change
- user1 blocks user2
- user2 tries to submit PR
Expected outcome:
User2 gets a message that they are blocked from repository.
Actual:
Template fails and displays server error.
Analysis:
Parameters passed to the template lack Details
key which causes the error.
gitea/routers/web/repo/pull.go
Lines 1355 to 1369 in 079a1ff
Adding it with even an empty string resolves the issue.
I haven't tried to do this on demo instance.
Gitea Version
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
2.47.1
Operating System
Linux
How are you running Gitea?
self-built
Database
SQLite