mc icon indicating copy to clipboard operation
mc copied to clipboard

xml: encoding "iso-8859-1" declared but Decoder.CharsetReader is nil

Open CGsama opened this issue 1 year ago • 0 comments

Expected behavior

Able to do s3 compatible operations on Less3, which successfully by awscli and s3 browser

Actual behavior

All operations will throw the same error

seems similar to this case https://stackoverflow.com/questions/6002619/unmarshal-an-iso-8859-1-xml-input-in-go

Steps to reproduce the behavior

install Less3 add to alias do any operation

mc --version

mc version RELEASE.2024-06-24T19-40-33Z (commit-id=3548007d5bd1ba8e2ed98f35d95c4776dd9a7ff9)
Runtime: go1.22.4 windows/amd64
Copyright (c) 2015-2024 MinIO, Inc.
License GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>

System information

mc ls --debug less3
mc.exe: <DEBUG> GET / HTTP/1.1
Host: localhost:9000
User-Agent: MinIO (windows; amd64) minio-go/v7.0.72 mc.exe/RELEASE.2024-06-24T19-40-33Z
Accept-Encoding: zstd,gzip
Authorization: AWS **REDACTED**:**REDACTED**
Date: Fri, 28 Jun 2024 15:19:54 GMT

mc.exe: <DEBUG> HTTP/1.1 200 OK
Content-Length: 482
Accept: */*
Accept-Charset: ISO-8859-1, utf-8
Accept-Language: en-US, en
Access-Control-Allow-Headers: *
Access-Control-Allow-Methods: OPTIONS, HEAD, GET, PUT, POST, DELETE
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Type: application/xml
Date: Fri, 28 Jun 2024 15:19:54 GMT
Server: nginx/1.18.0 (Ubuntu)
X-Amz-Id-2: acd28d0d-d9ed-4ad5-a9a5-3990c38031ba
X-Amz-Request-Id: acd28d0d-d9ed-4ad5-a9a5-3990c38031ba

mc.exe: <DEBUG> Response Time: 24.8508ms

mc.exe: <ERROR> Unable to list folder. xml: encoding "iso-8859-1" declared but Decoder.CharsetReader is nil
 (1) github.com/minio/mc/cmd/ls.go:239 cmd.doList(..) Tags: [http://localhost:9000/]
 (0) github.com/minio/mc/cmd/client-s3.go:2357 cmd.(*S3Client).listInRoutine(..)
 Release-Tag:RELEASE.2024-06-24T19-40-33Z | Commit:3548007d5bd1 | Host:MYPC | OS:windows | Arch:amd64 | Lang:go1.22.4 | Mem:4.0 MiB/18 MiB | Heap:4.0 MiB/12 MiB

CGsama avatar Jun 28 '24 15:06 CGsama