minio/cmd
Klaus Post 3e3ff2a70b
Check error status codes (#14850)
If an invalid status code is generated from an error we risk panicking. Even if there 
are no potential problems at the moment we should prevent this in the future.

Add safeguards against this.

Sample trace:

```
May 02 06:41:39   minio[52806]: panic: "GET /20180401230655.PDF": invalid WriteHeader code 0
May 02 06:41:39   minio[52806]: goroutine 16040430822 [running]:
May 02 06:41:39   minio[52806]: runtime/debug.Stack(0xc01fff7c20, 0x25c4b00, 0xc0490e4080)
May 02 06:41:39   minio[52806]:         runtime/debug/stack.go:24 +0x9f
May 02 06:41:39   minio[52806]: github.com/minio/minio/cmd.setCriticalErrorHandler.func1.1(0xc022048800, 0x4f38ab0, 0xc0406e0fc0)
May 02 06:41:39   minio[52806]:         github.com/minio/minio/cmd/generic-handlers.go:469 +0x85
May 02 06:41:39   minio[52806]: panic(0x25c4b00, 0xc0490e4080)
May 02 06:41:39   minio[52806]:         runtime/panic.go:965 +0x1b9
May 02 06:41:39   minio[52806]: net/http.checkWriteHeaderCode(...)
May 02 06:41:39   minio[52806]:         net/http/server.go:1092
May 02 06:41:39   minio[52806]: net/http.(*response).WriteHeader(0xc0406e0fc0, 0x0)
May 02 06:41:39   minio[52806]:         net/http/server.go:1126 +0x718
May 02 06:41:39   minio[52806]: github.com/minio/minio/internal/logger.(*ResponseWriter).WriteHeader(0xc032fa3ea0, 0x0)
May 02 06:41:39   minio[52806]:         github.com/minio/minio/internal/logger/audit.go:116 +0xb1
May 02 06:41:39   minio[52806]: github.com/minio/minio/internal/logger.(*ResponseWriter).WriteHeader(0xc032fa3f40, 0x0)
May 02 06:41:39   minio[52806]:         github.com/minio/minio/internal/logger/audit.go:116 +0xb1
May 02 06:41:39   minio[52806]: github.com/minio/minio/internal/logger.(*ResponseWriter).WriteHeader(0xc002ce8000, 0x0)
May 02 06:41:39   minio[52806]:         github.com/minio/minio/internal/logger/audit.go:116 +0xb1
May 02 06:41:39   minio[52806]: github.com/minio/minio/cmd.writeResponse(0x4f364a0, 0xc002ce8000, 0x0, 0xc0443b86c0, 0x1cb, 0x224, 0x2a9651e, 0xf)
May 02 06:41:39   minio[52806]:         github.com/minio/minio/cmd/api-response.go:736 +0x18d
May 02 06:41:39   minio[52806]: github.com/minio/minio/cmd.writeErrorResponse(0x4f44218, 0xc069086ae0, 0x4f364a0, 0xc002ce8000, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc00656afc0)
May 02 06:41:39   minio[52806]:         github.com/minio/minio/cmd/api-response.go:798 +0x306
May 02 06:41:39   minio[52806]: github.com/minio/minio/cmd.objectAPIHandlers.getObjectHandler(0x4b73768, 0x4b73730, 0x4f44218, 0xc069086ae0, 0x4f82090, 0xc002d80620, 0xc040e03885, 0xe, 0xc040e03894, 0x61, ...)
May 02 06:41:39   minio[52806]:         github.com/minio/minio/cmd/object-handlers.go:456 +0x252c
```
2022-05-02 10:36:29 -07:00
..
gateway Remove Azure gateway implementation (#14418) 2022-04-29 12:51:23 -07:00
testdata do not crash readXLMetaNoData - if the `xl.meta` has incorrect content (#14538) 2022-03-14 09:07:46 -07:00
acl-handlers.go Remove HTTP flushes for returning handlers (#13528) 2021-10-28 07:36:34 -07:00
admin-bucket-handlers.go Add support for site replication healing (#14572) 2022-04-24 02:36:31 -07:00
admin-handler-utils.go kes: remove unnecessary error conversion (#14459) 2022-03-03 09:42:37 -08:00
admin-handlers-config-kv.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
admin-handlers-pools.go resume/start decommission on the first node of the pool under decommission (#14705) 2022-04-06 23:42:05 -07:00
admin-handlers-site-replication.go allow forcibly creating metadata on buckets (#14820) 2022-04-27 04:44:07 -07:00
admin-handlers-users-race_test.go Increase context timeout for IAM concurrency test (#14817) 2022-04-25 20:14:20 -07:00
admin-handlers-users.go fix: disallow newer policies, users & groups with space characters (#14845) 2022-05-02 09:27:35 -07:00
admin-handlers-users_test.go Add support for multiple OpenID providers with role policies (#14223) 2022-04-28 18:27:09 -07:00
admin-handlers.go Add number of versions in server info API (#14812) 2022-04-25 22:04:10 -07:00
admin-handlers_test.go fix: rename some function names to avoid confusion (#14262) 2022-02-07 11:49:07 -08:00
admin-heal-ops.go heal: Enable periodic bitrot scan configuration (#14464) 2022-04-07 08:10:40 -07:00
admin-router.go Combine profiling start/stop APIs into one (#14662) 2022-04-08 12:44:35 -07:00
admin-server-info.go re-use transport for AdminInfo() call (#14571) 2022-03-17 16:20:10 -07:00
api-datatypes.go fix: audit log to support object names in multipleObjectNames() handler (#14017) 2022-01-03 01:28:52 -08:00
api-errors.go fix: disallow newer policies, users & groups with space characters (#14845) 2022-05-02 09:27:35 -07:00
api-errors_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
api-headers.go skip object-lock headers without values (#14430) 2022-03-01 11:04:47 -08:00
api-headers_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
api-resources.go update license change for MinIO 2021-04-23 11:58:53 -07:00
api-resources_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
api-response.go Check error status codes (#14850) 2022-05-02 10:36:29 -07:00
api-response_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
api-router.go Add GetObject gzip option (#14226) 2022-02-14 09:19:01 -08:00
api-utils.go update license change for MinIO 2021-04-23 11:58:53 -07:00
api-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
apierrorcode_string.go fix: disallow newer policies, users & groups with space characters (#14845) 2022-05-02 09:27:35 -07:00
auth-handler.go decouple service accounts from root credentials (#14534) 2022-03-14 09:09:22 -07:00
auth-handler_test.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
background-heal-ops.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
background-newdisks-heal-ops.go heal: remove blocking healDiskMeta upon startup (#14514) 2022-03-10 02:45:14 -08:00
background-newdisks-heal-ops_gen.go heal: Add MRF metrics to background heal API response (#12398) 2021-07-15 22:32:06 -07:00
background-newdisks-heal-ops_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
benchmark-utils_test.go fix: remove all unused code (#12360) 2021-05-24 09:28:19 -07:00
bitrot-streaming.go fix: hanging operations on PUT with slow IO (#13087) 2021-08-27 09:16:36 -07:00
bitrot-whole.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
bitrot.go fix: make sure to avoid calling RenameData() on disconnected disks. (#14094) 2022-01-12 18:49:01 -08:00
bitrot_test.go Fix hanging erasure writes (#12253) 2021-05-17 08:32:28 -07:00
bootstrap-peer-server.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
bucket-encryption-handlers.go Add support for site replication healing (#14572) 2022-04-24 02:36:31 -07:00
bucket-encryption.go Add support for site replication healing (#14572) 2022-04-24 02:36:31 -07:00
bucket-encryption_test.go sse: add support for SSE-KMS bucket configurations (#12295) 2021-05-14 00:59:05 -07:00
bucket-handlers.go allow forcibly creating metadata on buckets (#14820) 2022-04-27 04:44:07 -07:00
bucket-handlers_test.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
bucket-lifecycle-handlers.go Add quota usage as part of prometheus metrics (#14222) 2022-01-31 17:27:43 -08:00
bucket-lifecycle-handlers_test.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
bucket-lifecycle.go enable go1.18.x builds (#14746) 2022-04-13 14:21:55 -07:00
bucket-lifecycle_test.go restore: Add quotes some fields in x-amz-restore header (#14281) 2022-02-09 13:17:41 -08:00
bucket-listobjects-handlers.go listing: improve listing of encrypted objects (#14667) 2022-04-04 11:42:03 -07:00
bucket-metadata-sys.go Add support for site replication healing (#14572) 2022-04-24 02:36:31 -07:00
bucket-metadata.go Add support for site replication healing (#14572) 2022-04-24 02:36:31 -07:00
bucket-metadata_gen.go Add support for site replication healing (#14572) 2022-04-24 02:36:31 -07:00
bucket-metadata_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
bucket-notification-handlers.go Add quota usage as part of prometheus metrics (#14222) 2022-01-31 17:27:43 -08:00
bucket-object-lock.go Add support for site replication healing (#14572) 2022-04-24 02:36:31 -07:00
bucket-policy-handlers.go Add quota usage as part of prometheus metrics (#14222) 2022-01-31 17:27:43 -08:00
bucket-policy-handlers_test.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
bucket-policy.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
bucket-quota.go Add support for site replication healing (#14572) 2022-04-24 02:36:31 -07:00
bucket-replication-stats.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
bucket-replication-utils.go fix: consistent replies for incorrect range requests on replicated buckets (#14345) 2022-03-08 13:58:55 -08:00
bucket-replication-utils_gen.go Refactor replication resync to be an active process (#14266) 2022-02-10 10:16:52 -08:00
bucket-replication-utils_gen_test.go Refactor replication resync to be an active process (#14266) 2022-02-10 10:16:52 -08:00
bucket-replication-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
bucket-replication.go Add support for site replication healing (#14572) 2022-04-24 02:36:31 -07:00
bucket-replication_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
bucket-stats.go publish storage API latency through node metrics (#14117) 2022-01-25 16:31:44 -08:00
bucket-stats_gen.go metrics: Add replication latency metrics (#13515) 2021-11-17 12:10:57 -08:00
bucket-stats_gen_test.go metrics: Add replication latency metrics (#13515) 2021-11-17 12:10:57 -08:00
bucket-targets.go move gofumpt to golang-ci 2022-01-06 13:08:21 -08:00
bucket-versioning-handler.go Add quota usage as part of prometheus metrics (#14222) 2022-01-31 17:27:43 -08:00
bucket-versioning.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
build-constants.go update license change for MinIO 2021-04-23 11:58:53 -07:00
common-main.go Add support for multiple OpenID providers with role policies (#14223) 2022-04-28 18:27:09 -07:00
common-main_test.go Skip commented lines when parsing MinIO configuration file (#14710) 2022-04-07 16:02:51 -07:00
config-common.go use readConfig/saveConfig to simplify I/O on usage/tracker info (#14019) 2022-01-03 10:22:58 -08:00
config-current.go Add support for multiple OpenID providers with role policies (#14223) 2022-04-28 18:27:09 -07:00
config-current_test.go Add new `site` config sub-system intended to replace `region` (#13672) 2021-11-25 13:06:25 -08:00
config-dir.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
config-encrypted.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
config-encrypted_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
config-migrate.go Add support for multiple OpenID providers with role policies (#14223) 2022-04-28 18:27:09 -07:00
config-migrate_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
config-versions.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
config.go speed up startup sequence for all operations (#14148) 2022-01-24 11:28:45 -08:00
consolelogger.go Make audit webhook and kafka config dynamic (#14390) 2022-02-24 09:05:33 -08:00
copy-part-range.go feat: Deprecate embedded browser and import console (#12460) 2021-06-17 20:27:04 -07:00
copy-part-range_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
crossdomain-xml-handler.go reduce number of middleware handlers (#13546) 2021-11-01 08:04:03 -07:00
crossdomain-xml-handler_test.go use ParseForm() to allow query param lookups once (#12900) 2021-08-07 22:43:01 -07:00
data-scanner.go Honor object retention when applying ILM policies (#14732) 2022-04-11 21:55:56 -07:00
data-update-tracker.go speed up startup sequence for all operations (#14148) 2022-01-24 11:28:45 -08:00
data-update-tracker_test.go Make audit webhook and kafka config dynamic (#14390) 2022-02-24 09:05:33 -08:00
data-usage-cache.go Add number of versions in server info API (#14812) 2022-04-25 22:04:10 -07:00
data-usage-cache_gen.go cached diskIDs are not needed for scanner healing (#14170) 2022-01-26 08:34:56 -08:00
data-usage-cache_gen_test.go ilm: Make per-tier stats available via admin-tier-info (#13381) 2021-10-23 18:38:33 -07:00
data-usage-utils.go Add number of versions in server info API (#14812) 2022-04-25 22:04:10 -07:00
data-usage.go heal: Enable periodic bitrot scan configuration (#14464) 2022-04-07 08:10:40 -07:00
data-usage_test.go heal: Enable periodic bitrot scan configuration (#14464) 2022-04-07 08:10:40 -07:00
disk-cache-backend.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
disk-cache-check-support_contrib_windows.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
disk-cache-check-support_other.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
disk-cache-stats.go update license change for MinIO 2021-04-23 11:58:53 -07:00
disk-cache-utils.go etag: add `Format` and `Decrypt` functions (#14659) 2022-04-03 13:29:13 -07:00
disk-cache-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
disk-cache.go Deprecate root disk for disk caching (#14527) 2022-03-10 18:42:44 -08:00
disk-cache_test.go Avoid cache GC of writebacks before commit syncs (#13860) 2021-12-08 14:52:31 -08:00
dummy-data-generator_test.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
dummy-handlers.go Remove HTTP flushes for returning handlers (#13528) 2021-10-28 07:36:34 -07:00
dynamic-timeouts.go update license change for MinIO 2021-04-23 11:58:53 -07:00
dynamic-timeouts_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
encryption-v1.go listing: improve listing of encrypted objects (#14667) 2022-04-04 11:42:03 -07:00
encryption-v1_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
endpoint-ellipses.go feat: decommission feature for pools (#14012) 2022-01-10 09:07:49 -08:00
endpoint-ellipses_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
endpoint.go use dnscache resolver for resolving command line endpoints (#14135) 2022-01-20 13:03:15 -08:00
endpoint_contrib_test.go Revert "deprecate embedded browser (#12163)" 2021-04-30 08:50:39 -07:00
endpoint_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
erasure-bucket.go allow forcibly creating metadata on buckets (#14820) 2022-04-27 04:44:07 -07:00
erasure-coding.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
erasure-common.go do not skip healing disks during deletes (#14394) 2022-02-23 14:30:46 -08:00
erasure-decode.go fix: make sure to avoid calling RenameData() on disconnected disks. (#14094) 2022-01-12 18:49:01 -08:00
erasure-decode_test.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
erasure-encode.go fix: make sure to avoid calling RenameData() on disconnected disks. (#14094) 2022-01-12 18:49:01 -08:00
erasure-encode_test.go Fix hanging erasure writes (#12253) 2021-05-17 08:32:28 -07:00
erasure-errors.go update license change for MinIO 2021-04-23 11:58:53 -07:00
erasure-heal_test.go fix padding error and compatible with uploaded objects (#13803) 2021-12-03 09:26:30 -08:00
erasure-healing-common.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
erasure-healing-common_test.go add healing for invalid shards by skipping the blocks (#13978) 2021-12-23 23:01:46 -08:00
erasure-healing.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
erasure-healing_test.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
erasure-metadata-utils.go reduce unnecessary logging during speedtest (#14387) 2022-02-23 11:59:13 -08:00
erasure-metadata-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
erasure-metadata.go Don't add free-version on restore-object (#14340) 2022-02-17 15:05:19 -08:00
erasure-metadata_test.go re-implement pickValidInfo dataDir, move to quorum calculation (#13681) 2021-11-21 10:41:30 -08:00
erasure-multipart.go Add Put input readahead (#14084) 2022-01-14 10:01:25 -08:00
erasure-object.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
erasure-object_test.go fix: deleteVersions causing xl.meta to have empty Versions[] slice (#14483) 2022-03-04 20:01:26 -08:00
erasure-server-pool-decom.go allow changing server command line from http->https (#14832) 2022-04-28 16:27:53 -07:00
erasure-server-pool-decom_gen.go fix: simplify usage calculation and progress (#14086) 2022-01-11 18:48:43 -08:00
erasure-server-pool-decom_gen_test.go fix: simplify usage calculation and progress (#14086) 2022-01-11 18:48:43 -08:00
erasure-server-pool-decom_test.go reject changing pools when there are pending decommissions in-progress (#14102) 2022-01-14 10:32:35 -08:00
erasure-server-pool.go supply prefix filtering when necessary (#14772) 2022-04-19 08:20:48 -07:00
erasure-sets.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
erasure-sets_test.go feat: decommission feature for pools (#14012) 2022-01-10 09:07:49 -08:00
erasure-utils.go re-use io.Copy buffers with 32k pools (#13553) 2021-11-02 08:11:50 -07:00
erasure.go heal: Enable periodic bitrot scan configuration (#14464) 2022-04-07 08:10:40 -07:00
erasure_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
etcd.go etcd: Add logs for unusual failures (#13460) 2021-10-18 08:43:04 -07:00
format-disk-cache.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
format-disk-cache_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
format-erasure.go speedup getFormatErasureInQuorum use driveCount (#14239) 2022-02-04 12:21:21 -08:00
format-erasure_test.go speedup getFormatErasureInQuorum use driveCount (#14239) 2022-02-04 12:21:21 -08:00
format-fs.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
format-fs_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
format-meta.go update license change for MinIO 2021-04-23 11:58:53 -07:00
format_string.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
fs-tree-walk-pool.go update license change for MinIO 2021-04-23 11:58:53 -07:00
fs-tree-walk-pool_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
fs-v1-helpers.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
fs-v1-helpers_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
fs-v1-metadata.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
fs-v1-metadata_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
fs-v1-multipart.go nas: Clean stale background appended files (#14295) 2022-02-15 09:25:47 -08:00
fs-v1-multipart_test.go allow disabling strict sha256 validation with some broken clients (#13383) 2021-10-08 12:40:34 -07:00
fs-v1-rwpool.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
fs-v1-rwpool_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
fs-v1.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
fs-v1_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
gateway-common.go Add support for tier-remove and tier-verify (#14382) 2022-02-23 13:34:25 -08:00
gateway-common_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
gateway-env.go update license change for MinIO 2021-04-23 11:58:53 -07:00
gateway-interface.go Remove Azure gateway implementation (#14418) 2022-04-29 12:51:23 -07:00
gateway-main.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
gateway-main_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
gateway-metrics.go update license change for MinIO 2021-04-23 11:58:53 -07:00
gateway-startup-msg.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
gateway-startup-msg_test.go Remove Azure gateway implementation (#14418) 2022-04-29 12:51:23 -07:00
gateway-unsupported.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
generic-handlers.go fix: reject invalid r.Host headers (#14846) 2022-05-02 04:42:41 -07:00
generic-handlers_contrib.go Revert "deprecate embedded browser (#12163)" 2021-04-30 08:50:39 -07:00
generic-handlers_test.go reduce number of middleware handlers (#13546) 2021-11-01 08:04:03 -07:00
global-heal.go heal: Enable periodic bitrot scan configuration (#14464) 2022-04-07 08:10:40 -07:00
globals.go Remove Azure gateway implementation (#14418) 2022-04-29 12:51:23 -07:00
handler-api.go Use S3 client for uplooads/downloads during perf test (#14570) 2022-04-07 21:20:40 -07:00
handler-utils.go fix: panic in browser redirect handler for unexpected r.Host (#14844) 2022-05-01 13:45:45 -07:00
handler-utils_test.go fix: panic in browser redirect handler for unexpected r.Host (#14844) 2022-05-01 13:45:45 -07:00
hasher.go update license change for MinIO 2021-04-23 11:58:53 -07:00
healthcheck-handler.go reduce number of middleware handlers (#13546) 2021-11-01 08:04:03 -07:00
healthcheck-router.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
healthinfo.go update madmin-go dependency, update related code (#12669) 2021-07-12 10:16:10 -07:00
http-stats.go align 32bit integers with atomic values in structs (#14344) 2022-02-17 15:22:26 -08:00
http-tracer.go feat: Add RX/TX to audit logging (#13382) 2021-10-07 19:03:46 -07:00
http-tracer_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
httprange.go fix: consistent replies for incorrect range requests on replicated buckets (#14345) 2022-03-08 13:58:55 -08:00
httprange_test.go fix: consistent replies for incorrect range requests on replicated buckets (#14345) 2022-03-08 13:58:55 -08:00
iam-dummy-store.go Add option to policy info API to return create/mod timestamps (#13796) 2021-12-11 09:03:39 -08:00
iam-etcd-store.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
iam-etcd-store_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
iam-object-store.go fix: IAM reload should only list at config/iam/ precisely (#14753) 2022-04-15 12:12:45 -07:00
iam-store.go fix: disallow newer policies, users & groups with space characters (#14845) 2022-05-02 09:27:35 -07:00
iam.go Add support for multiple OpenID providers with role policies (#14223) 2022-04-28 18:27:09 -07:00
jwt.go decouple service accounts from root credentials (#14534) 2022-03-14 09:09:22 -07:00
jwt_test.go decouple service accounts from root credentials (#14534) 2022-03-14 09:09:22 -07:00
last-minute.go publish storage API latency through node metrics (#14117) 2022-01-25 16:31:44 -08:00
last-minute_gen.go publish storage API latency through node metrics (#14117) 2022-01-25 16:31:44 -08:00
last-minute_gen_test.go publish storage API latency through node metrics (#14117) 2022-01-25 16:31:44 -08:00
leak-detect_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
listen-notification-handlers.go use ParseForm() to allow query param lookups once (#12900) 2021-08-07 22:43:01 -07:00
local-locker.go Optimize read locker cleanup (#14200) 2022-01-27 14:10:57 -08:00
local-locker_test.go Optimize read locker cleanup (#14200) 2022-01-27 14:10:57 -08:00
lock-rest-client.go Reduce JWT overhead for internode tokens (#13738) 2021-11-23 09:51:53 -08:00
lock-rest-client_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
lock-rest-server-common.go internode lockArgs should use messagepack (#13329) 2021-09-30 11:53:01 -07:00
lock-rest-server-common_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
lock-rest-server.go Locker: Improve Refresh speed (#13430) 2021-10-15 03:12:13 -07:00
lock-rest-server_test.go Locker: Improve Refresh speed (#13430) 2021-10-15 03:12:13 -07:00
main.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
metacache-bucket.go Stop async listing earlier (#13160) 2021-09-08 11:06:45 -07:00
metacache-bucket_test.go askDisks for strict quorum to be equal to read quorum (#14623) 2022-03-25 16:29:45 -07:00
metacache-entries.go request only 1 best version for latest version resolution (#14625) 2022-03-25 08:50:07 -07:00
metacache-entries_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
metacache-manager.go Stop async listing earlier (#13160) 2021-09-08 11:06:45 -07:00
metacache-marker.go feat: Implement listing version 3.0 (#12605) 2021-07-05 15:34:41 -07:00
metacache-server-pool.go fetch bucket retention config once for ILM evalAction (#14727) 2022-04-11 13:25:32 -07:00
metacache-set.go fetch bucket retention config once for ILM evalAction (#14727) 2022-04-11 13:25:32 -07:00
metacache-stream.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
metacache-stream_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
metacache-walk.go Add local disk health checks (#14447) 2022-03-09 11:38:54 -08:00
metacache.go re-arrange metacache struct to be optimal (#13609) 2021-11-08 10:26:08 -08:00
metacache_gen.go re-arrange metacache struct to be optimal (#13609) 2021-11-08 10:26:08 -08:00
metacache_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
metacache_test.go Stop async listing earlier (#13160) 2021-09-08 11:06:45 -07:00
metrics-router.go add support for customizing redirect_uri for IDP (#12607) 2021-06-30 16:08:20 -07:00
metrics-v2.go Add metrics for observing IAM sync operations (#14680) 2022-04-03 13:08:59 -07:00
metrics.go Remove Azure gateway implementation (#14418) 2022-04-29 12:51:23 -07:00
mrf.go heal: Enable periodic bitrot scan configuration (#14464) 2022-04-07 08:10:40 -07:00
namespace-lock.go return correct context errors for locking operations (#14569) 2022-03-18 15:32:45 -07:00
namespace-lock_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
naughty-disk_test.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
net.go use dnscache resolver for resolving command line endpoints (#14135) 2022-01-20 13:03:15 -08:00
net_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
notification-summary.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
notification.go enable go1.18.x builds (#14746) 2022-04-13 14:21:55 -07:00
object-api-common.go fs: Return prefix as listing marker if no objects (#14143) 2022-01-20 10:55:18 -08:00
object-api-datatypes.go fix: simplify usage calculation and progress (#14086) 2022-01-11 18:48:43 -08:00
object-api-deleteobject_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
object-api-errors.go fix: regression from range GET proxy on replicated buckets #14345 (#14532) 2022-03-11 15:56:49 -08:00
object-api-getobjectinfo_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
object-api-input-checks.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
object-api-interface.go allow forcibly creating metadata on buckets (#14820) 2022-04-27 04:44:07 -07:00
object-api-listobjects_test.go fix: rename some function names to avoid confusion (#14262) 2022-02-07 11:49:07 -08:00
object-api-multipart_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
object-api-options.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
object-api-putobject_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
object-api-utils.go listing: improve listing of encrypted objects (#14667) 2022-04-04 11:42:03 -07:00
object-api-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
object-handlers-common.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
object-handlers-common_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
object-handlers.go fix: replication deleteObject() regression and CopyObject() behavior (#14780) 2022-04-20 10:22:05 -07:00
object-handlers_test.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
object_api_suite_test.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
os-dirent_fileino.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
os-dirent_ino.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
os-dirent_namelen_bsd.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
os-dirent_namelen_linux.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
os-instrumented.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
os-readdir-common.go Add option in readDir to enable symlink following of dirs (#12668) 2021-07-09 16:20:51 -07:00
os-readdir_other.go fix: build on illumos (Solaris) (#13097) 2021-08-30 08:40:16 -07:00
os-readdir_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
os-readdir_unix.go use O_DIRECT for all ReadFileStream (#13324) 2021-09-29 16:40:28 -07:00
os-readdir_windows.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
os-reliable.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
os-reliable_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
osmetric_string.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
peer-rest-client.go enable go1.18.x builds (#14746) 2022-04-13 14:21:55 -07:00
peer-rest-common.go Implement netperf for "mc support perf net" (#14397) 2022-03-08 09:54:38 -08:00
peer-rest-server.go Implement netperf for "mc support perf net" (#14397) 2022-03-08 09:54:38 -08:00
perf-tests.go Use S3 client for uplooads/downloads during perf test (#14570) 2022-04-07 21:20:40 -07:00
policy_test.go do not remove Sid from svcaccount policies (#14064) 2022-01-10 14:26:26 -08:00
post-policy_test.go update gofumpt -w - new changes 2022-04-13 12:00:11 -07:00
postpolicyform.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
postpolicyform_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
prepare-storage.go re-use transport for AdminInfo() call (#14571) 2022-03-17 16:20:10 -07:00
routers.go Fix adding bucket forwarder handler in server mode (#14288) 2022-02-10 08:49:36 -08:00
s3-zip-handlers.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
server-main.go askDisks for strict quorum to be equal to read quorum (#14623) 2022-03-25 16:29:45 -07:00
server-main_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
server-rlimit.go warn issues about large block I/O performance for Linux older than 4.0.0 (#14524) 2022-03-10 17:36:13 -08:00
server-startup-msg.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
server-startup-msg_test.go fix: simplify APIEndpoints() usage (#12893) 2021-08-05 15:01:19 -07:00
server_test.go fix: audit log to support object names in multipleObjectNames() handler (#14017) 2022-01-03 01:28:52 -08:00
service.go fix: atomic.Value should be a concrete type to avoid panics (#13740) 2021-11-23 16:09:28 -08:00
setup-type.go update license change for MinIO 2021-04-23 11:58:53 -07:00
signals.go do not flush if Write() failed (#13597) 2021-11-18 17:19:58 -08:00
signature-v2.go remove "expires" header from presign v2 as metadata (#13718) 2021-11-22 16:07:23 -08:00
signature-v2_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
signature-v4-parser.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
signature-v4-parser_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
signature-v4-utils.go return meaningful error for disabled users (#13968) 2021-12-22 11:40:21 -08:00
signature-v4-utils_test.go fix: rename some function names to avoid confusion (#14262) 2022-02-07 11:49:07 -08:00
signature-v4.go Add new `site` config sub-system intended to replace `region` (#13672) 2021-11-25 13:06:25 -08:00
signature-v4_test.go Add new `site` config sub-system intended to replace `region` (#13672) 2021-11-25 13:06:25 -08:00
site-replication.go allow service accounts and temp credentials site-level healing (#14829) 2022-04-28 02:39:00 -07:00
site-replication_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
speedtest.go Include speedtest as part of healthinfo api (#14696) 2022-04-12 13:17:44 -07:00
storage-datatypes.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
storage-datatypes_gen.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
storage-datatypes_gen_test.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
storage-datatypes_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
storage-errors.go Print log when EINVALID is encountered in storage layer (#13341) 2021-10-04 09:01:52 -07:00
storage-interface.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
storage-rest-client.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
storage-rest-common.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
storage-rest-server.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
storage-rest_test.go add more tests to cover areas for weird object names (#13873) 2021-12-09 17:52:53 -08:00
storagemetric_string.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
streaming-signature-v4.go Add new `site` config sub-system intended to replace `region` (#13672) 2021-11-25 13:06:25 -08:00
streaming-signature-v4_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
sts-datatypes.go sts: add support for certificate-based authentication (#12748) 2021-09-07 19:03:48 -07:00
sts-errors.go sts: add support for certificate-based authentication (#12748) 2021-09-07 19:03:48 -07:00
sts-handlers.go Add support for multiple OpenID providers with role policies (#14223) 2022-04-28 18:27:09 -07:00
sts-handlers_test.go Add support for multiple OpenID providers with role policies (#14223) 2022-04-28 18:27:09 -07:00
stserrorcode_string.go sts: add support for certificate-based authentication (#12748) 2021-09-07 19:03:48 -07:00
test-utils_test.go Always check for root disks unless MINIO_CI_CD is set (#14232) 2022-02-13 15:42:07 -08:00
tier-handlers.go Add support for tier-remove and tier-verify (#14382) 2022-02-23 13:34:25 -08:00
tier-journal.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
tier-journal_gen.go [Tiering] Support remote tiers with object versioning (#12342) 2021-06-03 14:26:51 -07:00
tier-journal_gen_test.go [Tiering] Support remote tiers with object versioning (#12342) 2021-06-03 14:26:51 -07:00
tier-journal_test.go [Tiering] Support remote tiers with object versioning (#12342) 2021-06-03 14:26:51 -07:00
tier-last-day-stats.go enable go1.18.x builds (#14746) 2022-04-13 14:21:55 -07:00
tier-mem-journal.go Add a 'free' version to track deletion of tiered object content (#12470) 2021-06-30 19:32:07 -07:00
tier-sweeper.go fix: various performance improvements to tiering (#12965) 2021-08-17 07:50:00 -07:00
tier.go Add support for minio tier type (#14468) 2022-04-11 13:24:40 -07:00
tier_gen.go move madmin to github.com/minio/madmin-go (#12239) 2021-05-06 08:52:02 -07:00
tier_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
tree-walk.go update license change for MinIO 2021-04-23 11:58:53 -07:00
tree-walk_test.go speed up startup sequence for all operations (#14148) 2022-01-24 11:28:45 -08:00
typed-errors.go do not remove Sid from svcaccount policies (#14064) 2022-01-10 14:26:26 -08:00
untar.go snowball: return errors on failures (#13836) 2021-12-06 09:45:23 -08:00
update-notifier.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
update-notifier_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
update.go Do not allow parallel upgrade in one server (#14782) 2022-04-20 06:18:21 -07:00
update_fips.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
update_nofips.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
update_test.go start using t.SetEnv instead of os.Setenv (#14787) 2022-04-23 15:33:45 -07:00
url_test.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
utils.go fix: disallow newer policies, users & groups with space characters (#14845) 2022-05-02 09:27:35 -07:00
utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
version_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
warm-backend-azure.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
warm-backend-gcs.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
warm-backend-minio.go Add support for minio tier type (#14468) 2022-04-11 13:24:40 -07:00
warm-backend-s3.go Use custom transport for site replication (#14391) 2022-02-23 11:50:40 -08:00
warm-backend.go Add support for minio tier type (#14468) 2022-04-11 13:24:40 -07:00
xl-storage-disk-id-check.go attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
xl-storage-errors.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
xl-storage-errors_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
xl-storage-format-utils.go fix: deleteVersions causing xl.meta to have empty Versions[] slice (#14483) 2022-03-04 20:01:26 -08:00
xl-storage-format-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
xl-storage-format-v1.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
xl-storage-format-v1_gen.go Inspect: Preserve permission flags (#13490) 2021-10-21 11:20:13 -07:00
xl-storage-format-v1_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
xl-storage-format-v2-legacy.go Fix inconsistent metadata after healing (#14125) 2022-01-19 10:48:00 -08:00
xl-storage-format-v2.go request only 1 best version for latest version resolution (#14625) 2022-03-25 08:50:07 -07:00
xl-storage-format-v2_gen.go Improve performance on multiple versions (#13573) 2021-11-18 12:15:22 -08:00
xl-storage-format-v2_gen_test.go Improve performance on multiple versions (#13573) 2021-11-18 12:15:22 -08:00
xl-storage-format-v2_string.go Improve listing consistency with version merging (#13723) 2021-12-02 11:29:16 -08:00
xl-storage-format-v2_test.go Tweak listing quorum (#14703) 2022-04-06 12:24:21 -07:00
xl-storage-format_test.go fix: deleteVersions causing xl.meta to have empty Versions[] slice (#14483) 2022-03-04 20:01:26 -08:00
xl-storage-free-version.go Improve performance on multiple versions (#13573) 2021-11-18 12:15:22 -08:00
xl-storage-free-version_test.go fix: deleteVersions causing xl.meta to have empty Versions[] slice (#14483) 2022-03-04 20:01:26 -08:00
xl-storage-meta-inline.go Improve performance on multiple versions (#13573) 2021-11-18 12:15:22 -08:00
xl-storage.go Add number of versions in server info API (#14812) 2022-04-25 22:04:10 -07:00
xl-storage_noatime_notsupported.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
xl-storage_noatime_supported.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
xl-storage_test.go Add local disk health checks (#14447) 2022-03-09 11:38:54 -08:00
xl-storage_unix_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
xl-storage_windows_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00