You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
Earl Warren 7818121d50
S3: log human readable error on connection failure (#26856)
Should BucketExists (HeadBucket) fail because of an error related to
the connection rather than the existence of the bucket, no information
is available and the admin is left guessing.

https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html

> This action is useful to determine if a bucket exists and you have
> permission to access it. The action returns a 200 OK if the bucket
> exists and you have permission to access it.
>
> If the bucket does not exist or you do not have permission to access
> it, the HEAD request returns a generic 400 Bad Request, 403
> Forbidden or 404 Not Found code. A message body is not included, so
> you cannot determine the exception beyond these error codes.

GetBucketVersioning is used instead and exclusively dedicated to
asserting if using the connection does not return a BadRequest.
If it does the NewMinioStorage logs an error and returns. Otherwise
it keeps going knowing that BucketExists is not going to fail for
reasons unrelated to the existence of the bucket and the permissions
to access it.

(cherry picked from commit d1df4b3bc62e5e61893a923f1c4b58f084eb03af)

Refs: https://codeberg.org/forgejo/forgejo/issues/1338
10 months ago
..
actions chore(actions): support cron schedule task (#26655) 10 months ago
activitypub move repository deletion to service layer (#26948) 10 months ago
analyze Rename code_langauge.go to code_language.go (#26377) 11 months ago
assetfs Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 10 months ago
auth Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
avatar Remove nfnt/resize and oliamb/cutter (#25999) 11 months ago
base Replace `interface{}` with `any` (#25686) 1 year ago
cache improve unit test for caching (#26185) 11 months ago
charset Replace `interface{}` with `any` (#25686) 1 year ago
container Implement FSFE REUSE for golang files (#21840) 2 years ago
context Fix the display of org level badges (#26504) 10 months ago
contexttest Avoid double-unescaping of form value (#26853) 10 months ago
csv Refactor locale number (#24134) 1 year ago
doctor Add fix incorrect can_create_org_repo for org owner team (#26683) 10 months ago
emoji Update emoji set to Unicode 15 (#25595) 1 year ago
eventsource Less naked returns (#25713) 12 months ago
generate Handle base64 decoding correctly to avoid panic (#26483) 11 months ago
git Clarify the git command Stdin hanging problem (#26967) 10 months ago
gitgraph Add context cache as a request level cache (#22294) 1 year ago
graceful Allow the use of alternative net.Listener implementations by downstreams (#25855) 11 months ago
hcaptcha Consume hcaptcha and pwn deps (#22610) 1 year ago
highlight Upgrade go dependencies (#25819) 12 months ago
hostmatcher Implement FSFE REUSE for golang files (#21840) 2 years ago
html Refactor backend SVG package and add tests (#26335) 11 months ago
httpcache Less naked returns (#25713) 12 months ago
httplib Less naked returns (#25713) 12 months ago
indexer Clarify the git command Stdin hanging problem (#26967) 10 months ago
issue/template Replace `interface{}` with `any` (#25686) 1 year ago
json Replace `interface{}` with `any` (#25686) 1 year ago
label Make label templates have consistent behavior and priority (#23749) 1 year ago
lfs Rewrite logger system (#24726) 1 year ago
log Reduce some allocations in type conversion (#26772) 10 months ago
markup Make `user-content-* ` consistent with github (#26388) 11 months ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics Use a separate admin page to show global stats, remove `actions` stat (#25062) 1 year ago
migration Replace `interface{}` with `any` (#25686) 1 year ago
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 12 months ago
options Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
packages Use docs.gitea.com instead of docs.gitea.io (#26739) 10 months ago
paginator Use more specific test methods (#24265) 1 year ago
pprof Implement FSFE REUSE for golang files (#21840) 2 years ago
private Replace `interface{}` with `any` (#25686) 1 year ago
process Less naked returns (#25713) 12 months ago
proxy Use proxy for pull mirror (#22771) 1 year ago
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2 years ago
public Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" (#25974) 11 months ago
queue Expanding documentation in queue.go (#26889) 10 months ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Use correct captured group range when parsing cross-reference (#22672) 1 year ago
regexplru Upgrade go dependencies (#25819) 12 months ago
repository Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 10 months ago
secret Improve decryption failure message (#24573) 1 year ago
session Replace `interface{}` with `any` (#25686) 1 year ago
setting Use secure cookie for HTTPS sites (#26999) 10 months ago
sitemap Fix sitemap (#22272) 2 years ago
ssh restrict certificate type for builtin SSH server (#26789) 10 months ago
storage S3: log human readable error on connection failure (#26856) 10 months ago
structs refactor(API): refactor secret creation and update functionality (#26751) 10 months ago
svg Refactor backend SVG package and add tests (#26335) 11 months ago
sync Implement FSFE REUSE for golang files (#21840) 2 years ago
system Implement FSFE REUSE for golang files (#21840) 2 years ago
templates Replace `util.SliceXxx` with `slices.Xxx` (#26958) 10 months ago
test Move web/api context related testing function into a separate package (#26859) 10 months ago
testlogger Replace `interface{}` with `any` (#25686) 1 year ago
timeutil Fix incorrect webhook time and use relative-time to display it (#24477) 1 year ago
translation Replace `interface{}` with `any` (#25686) 1 year ago
turnstile Add new captcha: cloudflare turnstile (#22369) 1 year ago
typesniffer Detect ogg mime-type as audio or video (#26494) 11 months ago
updatechecker Implement FSFE REUSE for golang files (#21840) 2 years ago
upload Implement FSFE REUSE for golang files (#21840) 2 years ago
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util Replace `util.SliceXxx` with `slices.Xxx` (#26958) 10 months ago
validation Check blocklist for emails when adding them to account (#26812) 10 months ago
web Update tool dependencies (#26607) 10 months ago
webhook New webhook trigger for receiving Pull Request review requests (#24481) 1 year ago