0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 01:14:10 -05:00
forgejo/templates
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
..
admin Don't show loading indicators when refreshing the system status (#30712) 2024-04-28 15:39:01 +02:00
api/packages/pypi Update templates/api/packages/pypi/simple.tmpl 2024-04-12 16:43:30 +00:00
base Add [other].SHOW_FOOTER_POWERED_BY setting to hide Powered by (#30253) 2024-04-07 15:40:31 +02:00
custom
devtest Revert 100% label max-width (#30481) 2024-04-21 11:37:55 +02:00
explore [BUG] Fix tooltip for 1000+ stars/forks 2024-04-10 23:53:40 +02:00
mail Provide a way to translate data units 2024-03-30 21:10:47 +05:00
org Show repo count in blocked users tab (#3601) 2024-05-02 15:51:27 +00:00
package Add support for npm bundleDependencies (#30751) 2024-05-05 08:24:01 +01:00
projects Fix project name wrapping, remove horizontal margin on header (#30631) 2024-04-28 15:39:00 +02:00
repo Fix issue card layout (#30800) 2024-05-05 12:15:40 +01:00
shared Remove obsolete CSS text classes (#30576) 2024-04-28 15:39:00 +02:00
status
swagger Catch and handle unallowed file type errors in issue attachment API (#30791) 2024-05-05 12:15:40 +01:00
user Show repo count in blocked users tab (#3601) 2024-05-02 15:51:27 +00:00
webhook webhook: matrix access_token helper text 2024-04-16 08:59:56 +02:00
home.tmpl
install.tmpl Update checker setting updates 2024-03-31 10:52:24 +05:00
post-install.tmpl