forgejo/routers/api/v1/repo
Kemal Zebari 9cd0441cd3
Catch and handle unallowed file type errors in issue attachment API (#30791)
Before, we would just throw 500 if a user passes an attachment that is
not an allowed type. This commit catches this error and throws a 422
instead since this should be considered a validation error.

(cherry picked from commit 872caa17c0a30d95f85ab75c068d606e07bd10b3)

Conflicts:
	tests/integration/api_comment_attachment_test.go
	tests/integration/api_issue_attachment_test.go
	trivial context conflict because of 'allow setting the update date on issues and comments'
2024-05-05 12:15:40 +01:00
..
action.go feat(api): enhance Actions Secrets Management API for repository (#30656) 2024-04-28 15:39:01 +02:00
actions.go Add API endpoints for getting action jobs status (#26673) 2024-05-05 12:15:40 +01:00
avatar.go
blob.go
branch.go Fix branch_protection api shows users/teams who has no readAccess (#30291) 2024-04-21 16:28:16 +02:00
collaborators.go
commits.go
compare.go Fix compare api swagger (#30648) 2024-04-28 15:39:00 +02:00
file.go Count downloads for tag archives 2024-04-08 12:51:27 +02:00
flags.go
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
issue_attachment.go Catch and handle unallowed file type errors in issue attachment API (#30791) 2024-05-05 12:15:40 +01:00
issue_comment.go Do some performance optimize for issues list and view issue/pull (gitea#29515) 2024-04-08 14:47:31 +02:00
issue_comment_attachment.go Catch and handle unallowed file type errors in issue attachment API (#30791) 2024-05-05 12:15:40 +01:00
issue_dependency.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
issue_label.go
issue_pin.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
key.go
label.go
language.go
main_test.go
migrate.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-05-05 08:38:16 +01:00
milestone.go
mirror.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
notes.go
patch.go
pull.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
pull_review.go Prevent allow/reject reviews on merged/closed PRs (#30686) 2024-04-28 15:39:01 +02:00
release.go [FEAT]Add Option to hide Release Archive links (#3139) 2024-04-24 15:15:55 +00:00
release_attachment.go
release_tags.go
repo.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
repo_test.go
star.go
status.go
subscriber.go
tag.go Count downloads for tag archives 2024-04-08 12:51:27 +02:00
teams.go
topic.go
transfer.go
tree.go
wiki.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00