0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-18 16:01:36 +01:00
gitea/routers/web
KN4CK3R 44f2c27d28
Fix CSV render error (#17406)
closed #17378 

Both errors from #17378 were caused by  #15175.

Problem 1 (error with added file):
`ToUTF8WithFallbackReader` creates a `MultiReader` from a `byte[2048]` and the remaining reader. `CreateReaderAndGuessDelimiter` tries to read 10000 bytes from this reader but only gets 2048 because that's the first reader in the `MultiReader`. Then the `if size < 1e4` thinks the input is at EOF and just returns that.

Problem 2 (error with changed file):
The blob reader gets defer closed. That was fine because the old version reads the whole file into memory. Now with the streaming version the close needs to defer after the method.
2021-10-25 00:42:32 +02:00
..
admin Refactor update checker to use AppState (#17387) 2021-10-21 17:10:49 +01:00
dev Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
events Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
explore Add user status filter to admin user management page (#16770) 2021-10-12 20:11:35 +02:00
feed Add RSS/Atom feed support for user actions (#16002) 2021-10-16 16:21:16 +02:00
org Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
repo Fix CSV render error (#17406) 2021-10-25 00:42:32 +02:00
user Add groups scope/claim to OIDC/OAuth2 Provider (#17367) 2021-10-22 17:19:24 +08:00
base.go Use a variable but a function for IsProd because of a slight performance increment (#17368) 2021-10-20 16:37:19 +02:00
goget.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
home.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
metrics.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 2021-09-28 01:38:06 +02:00
swagger_json.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
web.go Use a variable but a function for IsProd because of a slight performance increment (#17368) 2021-10-20 16:37:19 +02:00