Harshavardhana
39ac62a1a1
fix: panic in browser redirect handler for unexpected r.Host (#14844)
```
panic: "GET /": invalid hostname
goroutine 148 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x65
github.com/minio/minio/cmd.setCriticalErrorHandler.func1.1()
github.com/minio/minio/cmd/generic-handlers.go:469 +0x8e
panic({0x2201f00, 0xc001f1ddd0})
runtime/panic.go:1038 +0x215
github.com/minio/pkg/net.URL.String({{0x25aa417, 0x5}, {0x0, 0x0}, 0x0, {0xc000174380, 0xd7}, {0x0, 0x0}, {0x0, ...}, ...})
github.com/minio/pkg@v1.1.23/net/url.go:97 +0xfe
github.com/minio/minio/cmd.setBrowserRedirectHandler.func1({0x49af080, 0xc0003c20e0}, 0xc00002ea00)
github.com/minio/minio/cmd/generic-handlers.go:136 +0x118
net/http.HandlerFunc.ServeHTTP(0xc00002ea00, {0x49af080, 0xc0003c20e0}, 0xa)
net/http/server.go:2047 +0x2f
github.com/minio/minio/cmd.setAuthHandler.func1({0x49af080, 0xc0003c20e0}, 0xc00002ea00)
github.com/minio/minio/cmd/auth-handler.go:525 +0x3d8
net/http.HandlerFunc.ServeHTTP(0xc00002e900, {0x49af080, 0xc0003c20e0}, 0xc001f33701)
net/http/server.go:2047 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0025d0780, {0x49af080, 0xc0003c20e0}, 0xc00002e800)
github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1cf
github.com/rs/cors.(*Cors).Handler.func1({0x49af080, 0xc0003c20e0}, 0xc00002e800)
github.com/rs/cors@v1.7.0/cors.go:219 +0x1bd
net/http.HandlerFunc.ServeHTTP(0x0, {0x49af080, 0xc0003c20e0}, 0xc00068d9f8)
net/http/server.go:2047 +0x2f
github.com/minio/minio/cmd.setCriticalErrorHandler.func1({0x49af080, 0xc0003c20e0}, 0x4a5cd3)
github.com/minio/minio/cmd/generic-handlers.go:476 +0x83
net/http.HandlerFunc.ServeHTTP(0x72, {0x49af080, 0xc0003c20e0}, 0x0)
net/http/server.go:2047 +0x2f
github.com/minio/minio/internal/http.(*Server).Start.func1({0x49af080, 0xc0003c20e0}, 0x10000c001f1dda0)
github.com/minio/minio/internal/http/server.go:105 +0x1b6
net/http.HandlerFunc.ServeHTTP(0x0, {0x49af080, 0xc0003c20e0}, 0x46982e)
net/http/server.go:2047 +0x2f
net/http.serverHandler.ServeHTTP({0xc003dc1950}, {0x49af080, 0xc0003c20e0}, 0xc00002e800)
net/http/server.go:2879 +0x43b
net/http.(*conn).serve(0xc000514d20, {0x49cfc38, 0xc0010c0e70})
net/http/server.go:1930 +0xb08
created by net/http.(*Server).Serve
net/http/server.go:3034 +0x4e8
```
2022-05-01 13:45:45 -07:00
..
2022-04-29 12:51:23 -07:00
2022-03-14 09:07:46 -07:00
2021-10-28 07:36:34 -07:00
2022-04-24 02:36:31 -07:00
2022-03-03 09:42:37 -08:00
2022-02-07 11:49:07 -08:00
2022-04-13 12:00:11 -07:00
2022-04-06 23:42:05 -07:00
2022-04-27 04:44:07 -07:00
2022-04-28 18:27:09 -07:00
2022-04-25 20:14:20 -07:00
2022-04-24 02:36:31 -07:00
2022-04-25 22:04:10 -07:00
2022-04-07 08:10:40 -07:00
2022-04-08 12:44:35 -07:00
2022-03-17 16:20:10 -07:00
2022-01-03 01:28:52 -08:00
2021-06-01 14:59:40 -07:00
2022-02-17 11:36:14 -08:00
2022-01-02 09:15:06 -08:00
2022-03-01 11:04:47 -08:00
2021-04-23 11:58:53 -07:00
2021-04-23 11:58:53 -07:00
2021-04-23 11:58:53 -07:00
2022-01-02 09:15:06 -08:00
2022-02-14 09:19:01 -08:00
2022-01-02 09:15:06 -08:00
2021-04-23 11:58:53 -07:00
2022-02-17 11:36:14 -08:00
2022-04-13 12:00:11 -07:00
2022-03-14 09:09:22 -07:00
2022-01-02 09:15:06 -08:00
2021-04-23 11:58:53 -07:00
2021-07-15 22:32:06 -07:00
2022-03-10 02:45:14 -08:00
2021-05-24 09:28:19 -07:00
2021-05-17 08:32:28 -07:00
2021-08-27 09:16:36 -07:00
2021-06-01 14:59:40 -07:00
2022-01-12 18:49:01 -08:00
2022-03-03 13:21:16 -08:00
2021-05-14 00:59:05 -07:00
2022-04-24 02:36:31 -07:00
2022-04-24 02:36:31 -07:00
2022-04-13 12:00:11 -07:00
2022-04-27 04:44:07 -07:00
2022-02-09 13:17:41 -08:00
2022-04-13 12:00:11 -07:00
2022-01-31 17:27:43 -08:00
2022-04-13 14:21:55 -07:00
2022-04-04 11:42:03 -07:00
2021-04-23 11:58:53 -07:00
2022-04-24 02:36:31 -07:00
2022-04-24 02:36:31 -07:00
2022-04-24 02:36:31 -07:00
2022-01-31 17:27:43 -08:00
2022-04-24 02:36:31 -07:00
2022-04-13 12:00:11 -07:00
2022-01-31 17:27:43 -08:00
2022-01-02 09:15:06 -08:00
2022-04-24 02:36:31 -07:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-02-10 10:16:52 -08:00
2022-02-10 10:16:52 -08:00
2022-01-02 09:15:06 -08:00
2022-03-08 13:58:55 -08:00
2022-04-24 02:36:31 -07:00
2021-11-17 12:10:57 -08:00
2021-11-17 12:10:57 -08:00
2022-01-25 16:31:44 -08:00
2022-01-06 13:08:21 -08:00
2022-01-31 17:27:43 -08:00
2021-06-01 14:59:40 -07:00
2021-04-23 11:58:53 -07:00
2022-04-07 16:02:51 -07:00
2022-04-28 18:27:09 -07:00
2022-01-03 10:22:58 -08:00
2021-11-25 13:06:25 -08:00
2022-04-28 18:27:09 -07:00
2022-01-02 09:15:06 -08:00
2021-06-01 14:59:40 -07:00
2022-03-03 13:21:16 -08:00
2022-01-02 09:15:06 -08:00
2022-04-28 18:27:09 -07:00
2021-11-16 09:28:29 -08:00
2022-01-24 11:28:45 -08:00
2022-02-24 09:05:33 -08:00
2021-04-23 11:58:53 -07:00
2021-06-17 20:27:04 -07:00
2021-08-07 22:43:01 -07:00
2021-11-01 08:04:03 -07:00
2022-04-11 21:55:56 -07:00
2022-02-24 09:05:33 -08:00
2022-01-24 11:28:45 -08:00
2022-04-07 08:10:40 -07:00
2021-10-23 18:38:33 -07:00
2022-01-26 08:34:56 -08:00
2022-04-25 22:04:10 -07:00
2022-04-25 22:04:10 -07:00
2022-04-07 08:10:40 -07:00
2021-12-08 14:52:31 -08:00
2022-03-03 13:21:16 -08:00
2021-08-18 18:35:22 -07:00
2021-08-18 18:35:22 -07:00
2021-04-23 11:58:53 -07:00
2022-01-02 09:15:06 -08:00
2022-04-03 13:29:13 -07:00
2022-03-10 18:42:44 -08:00
2021-11-16 09:28:29 -08:00
2021-10-28 07:36:34 -07:00
2022-01-02 09:15:06 -08:00
2021-04-23 11:58:53 -07:00
2022-01-02 09:15:06 -08:00
2022-04-04 11:42:03 -07:00
2021-04-30 08:50:39 -07:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-01-10 09:07:49 -08:00
2022-01-20 13:03:15 -08:00
2021-04-23 11:58:53 -07:00
2022-04-27 04:44:07 -07:00
2022-01-02 09:15:06 -08:00
2022-02-23 14:30:46 -08:00
2021-11-16 09:28:29 -08:00
2022-01-12 18:49:01 -08:00
2021-05-17 08:32:28 -07:00
2022-01-12 18:49:01 -08:00
2021-04-23 11:58:53 -07:00
2021-12-03 09:26:30 -08:00
2022-04-20 12:49:05 -07:00
2021-12-23 23:01:46 -08:00
2022-04-20 12:49:05 -07:00
2022-04-13 12:00:11 -07:00
2021-11-21 10:41:30 -08:00
2022-01-02 09:15:06 -08:00
2022-02-23 11:59:13 -08:00
2022-02-17 15:05:19 -08:00
2022-01-14 10:01:25 -08:00
2022-03-04 20:01:26 -08:00
2022-04-20 12:49:05 -07:00
2022-01-11 18:48:43 -08:00
2022-01-11 18:48:43 -08:00
2022-01-14 10:32:35 -08:00
2022-04-28 16:27:53 -07:00
2022-04-19 08:20:48 -07:00
2022-01-10 09:07:49 -08:00
2022-04-13 12:00:11 -07:00
2021-11-02 08:11:50 -07:00
2022-04-07 08:10:40 -07:00
2021-10-18 08:43:04 -07:00
2021-04-23 11:58:53 -07:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-02-04 12:21:21 -08:00
2022-02-04 12:21:21 -08:00
2021-04-23 11:58:53 -07:00
2022-01-02 09:15:06 -08:00
2021-04-23 11:58:53 -07:00
2021-04-23 11:58:53 -07:00
2021-04-23 11:58:53 -07:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2021-04-23 11:58:53 -07:00
2022-01-02 09:15:06 -08:00
2021-10-08 12:40:34 -07:00
2022-02-15 09:25:47 -08:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-04-13 12:00:11 -07:00
2021-04-23 11:58:53 -07:00
2022-02-23 13:34:25 -08:00
2021-04-23 11:58:53 -07:00
2022-04-29 12:51:23 -07:00
2021-04-23 11:58:53 -07:00
2022-03-03 13:21:16 -08:00
2021-04-23 11:58:53 -07:00
2022-04-29 12:51:23 -07:00
2022-03-03 13:21:16 -08:00
2022-04-13 12:00:11 -07:00
2021-04-30 08:50:39 -07:00
2021-11-01 08:04:03 -07:00
2022-05-01 13:45:45 -07:00
2022-04-07 08:10:40 -07:00
2022-04-29 12:51:23 -07:00
2022-04-07 21:20:40 -07:00
2022-05-01 13:45:45 -07:00
2022-05-01 13:45:45 -07:00
2021-04-23 11:58:53 -07:00
2021-11-01 08:04:03 -07:00
2022-01-02 09:15:06 -08:00
2021-07-12 10:16:10 -07:00
2022-02-17 15:22:26 -08:00
2022-01-02 09:15:06 -08:00
2021-10-07 19:03:46 -07:00
2022-03-08 13:58:55 -08:00
2022-03-08 13:58:55 -08:00
2021-12-11 09:03:39 -08:00
2021-04-23 11:58:53 -07:00
2022-01-02 09:15:06 -08:00
2022-04-15 12:12:45 -07:00
2022-04-28 18:27:09 -07:00
2022-04-28 18:27:09 -07:00
2022-03-14 09:09:22 -07:00
2022-03-14 09:09:22 -07:00
2022-01-25 16:31:44 -08:00
2022-01-25 16:31:44 -08:00
2022-01-25 16:31:44 -08:00
2021-04-23 11:58:53 -07:00
2021-08-07 22:43:01 -07:00
2022-01-27 14:10:57 -08:00
2022-01-27 14:10:57 -08:00
2021-06-01 14:59:40 -07:00
2021-11-23 09:51:53 -08:00
2021-10-15 03:12:13 -07:00
2021-06-01 14:59:40 -07:00
2021-09-30 11:53:01 -07:00
2021-10-15 03:12:13 -07:00
2022-03-03 13:21:16 -08:00
2021-04-23 11:58:53 -07:00
2021-11-08 10:26:08 -08:00
2021-09-08 11:06:45 -07:00
2022-03-25 16:29:45 -07:00
2021-09-08 11:06:45 -07:00
2022-01-02 09:15:06 -08:00
2022-03-25 08:50:07 -07:00
2021-09-08 11:06:45 -07:00
2021-07-05 15:34:41 -07:00
2022-04-11 13:25:32 -07:00
2022-04-11 13:25:32 -07:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-03-09 11:38:54 -08:00
2021-11-08 10:26:08 -08:00
2021-06-30 16:08:20 -07:00
2022-04-03 13:08:59 -07:00
2022-04-29 12:51:23 -07:00
2022-04-07 08:10:40 -07:00
2021-04-23 11:58:53 -07:00
2022-03-18 15:32:45 -07:00
2022-04-20 12:49:05 -07:00
2022-01-02 09:15:06 -08:00
2022-01-20 13:03:15 -08:00
2022-01-02 09:15:06 -08:00
2022-04-13 14:21:55 -07:00
2021-11-16 09:28:29 -08:00
2022-01-20 10:55:18 -08:00
2022-01-11 18:48:43 -08:00
2022-01-02 09:15:06 -08:00
2022-03-11 15:56:49 -08:00
2021-04-23 11:58:53 -07:00
2021-06-01 14:59:40 -07:00
2022-04-27 04:44:07 -07:00
2022-02-07 11:49:07 -08:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-04-04 11:42:03 -07:00
2022-04-13 12:00:11 -07:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-04-20 10:22:05 -07:00
2021-08-18 18:35:22 -07:00
2021-08-18 18:35:22 -07:00
2021-08-18 18:35:22 -07:00
2021-08-18 18:35:22 -07:00
2021-06-01 14:59:40 -07:00
2021-08-30 08:40:16 -07:00
2022-01-02 09:15:06 -08:00
2021-09-29 16:40:28 -07:00
2021-08-18 18:35:22 -07:00
2021-07-09 16:20:51 -07:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2021-04-23 11:58:53 -07:00
2022-04-13 14:21:55 -07:00
2022-03-08 09:54:38 -08:00
2022-03-08 09:54:38 -08:00
2022-04-07 21:20:40 -07:00
2022-01-10 14:26:26 -08:00
2022-04-13 12:00:11 -07:00
2021-04-23 11:58:53 -07:00
2021-11-16 09:28:29 -08:00
2022-03-17 16:20:10 -07:00
2022-02-10 08:49:36 -08:00
2022-01-02 09:15:06 -08:00
2022-01-03 01:28:52 -08:00
2021-04-23 11:58:53 -07:00
2022-03-25 16:29:45 -07:00
2022-03-10 17:36:13 -08:00
2021-08-05 15:01:19 -07:00
2022-03-03 13:21:16 -08:00
2021-11-23 16:09:28 -08:00
2021-04-23 11:58:53 -07:00
2021-11-18 17:19:58 -08:00
2022-01-02 09:15:06 -08:00
2021-11-22 16:07:23 -08:00
2021-11-25 13:06:25 -08:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-02-07 11:49:07 -08:00
2021-12-22 11:40:21 -08:00
2021-11-25 13:06:25 -08:00
2022-01-02 09:15:06 -08:00
2022-04-28 02:39:00 -07:00
2022-04-12 13:17:44 -07:00
2022-04-20 12:49:05 -07:00
2022-04-20 12:49:05 -07:00
2021-04-23 11:58:53 -07:00
2022-04-20 12:49:05 -07:00
2021-10-04 09:01:52 -07:00
2022-04-20 12:49:05 -07:00
2021-12-09 17:52:53 -08:00
2022-04-20 12:49:05 -07:00
2022-04-20 12:49:05 -07:00
2022-04-20 12:49:05 -07:00
2022-04-20 12:49:05 -07:00
2021-04-23 11:58:53 -07:00
2021-11-25 13:06:25 -08:00
2021-09-07 19:03:48 -07:00
2021-09-07 19:03:48 -07:00
2022-04-28 18:27:09 -07:00
2022-04-28 18:27:09 -07:00
2021-09-07 19:03:48 -07:00
2022-02-13 15:42:07 -08:00
2021-04-23 11:58:53 -07:00
2021-05-06 08:52:02 -07:00
2022-02-23 13:34:25 -08:00
2021-06-03 14:26:51 -07:00
2021-06-03 14:26:51 -07:00
2021-06-03 14:26:51 -07:00
2022-01-02 09:15:06 -08:00
2022-04-13 14:21:55 -07:00
2021-06-30 19:32:07 -07:00
2021-08-17 07:50:00 -07:00
2022-04-11 13:24:40 -07:00
2022-01-24 11:28:45 -08:00
2021-04-23 11:58:53 -07:00
2022-01-10 14:26:26 -08:00
2021-12-06 09:45:23 -08:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-04-23 15:33:45 -07:00
2021-06-01 14:59:40 -07:00
2022-03-03 13:21:16 -08:00
2022-04-20 06:18:21 -07:00
2021-11-16 09:28:29 -08:00
2022-01-02 09:15:06 -08:00
2022-04-29 09:35:42 -07:00
2021-04-23 11:58:53 -07:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-04-11 13:24:40 -07:00
2022-02-23 11:50:40 -08:00
2022-04-11 13:24:40 -07:00
2021-08-18 18:35:22 -07:00
2021-08-18 18:35:22 -07:00
2022-03-09 11:38:54 -08:00
2022-01-02 09:15:06 -08:00
2022-01-02 09:15:06 -08:00
2022-04-20 12:49:05 -07:00
2021-04-23 11:58:53 -07:00
2021-04-23 11:58:53 -07:00
2022-03-04 20:01:26 -08:00
2022-01-02 09:15:06 -08:00
2022-03-04 20:01:26 -08:00
2021-04-23 11:58:53 -07:00
2021-10-21 11:20:13 -07:00
2022-01-02 09:15:06 -08:00
2021-11-18 12:15:22 -08:00
2021-11-18 12:15:22 -08:00
2021-12-02 11:29:16 -08:00
2022-04-06 12:24:21 -07:00
2022-01-19 10:48:00 -08:00
2022-03-25 08:50:07 -07:00
2022-03-04 20:01:26 -08:00
2021-11-18 12:15:22 -08:00
2021-11-18 12:15:22 -08:00
2022-04-25 22:04:10 -07:00