minio
minio copied to clipboard
Multiline comment for region causes error
Expected Behavior
Be able to save multi line region comment without error
Current Behavior
When using a multiline comment the following error banner is displayed:
Unknown sub-system This is line 2"
Possible Solution
Improve the subsystem/key/value parser. I found the error message defined at https://github.com/minio/minio/blob/18dffb26e7aba09074704d169517285ac3870e86/internal/config/config.go#L682 but I don't know any golang.
Steps to Reproduce (for bugs)
- Set up a single node single drive test instance
- Log into the console
- Set the region comment to something with multiple lines
- Click Save
Context

Regression
Don't know.
Your Environment
- Version used (
minio --version
):
minio version RELEASE.2022-09-17T00-09-45Z (commit-id=d89f6af6c4ab280140627974252077fba47bbb79)
Runtime: go1.18.6 linux/amd64
License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
Copyright: 2015-2022 MinIO, Inc
- Server setup and configuration:
Single Node
Single Disk
Testing instance
- Operating System and version (
uname -a
):
Debian 11 64-bit Intel