1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-07-15 18:24:16 +02:00

[#6654] fixed S3 canonical uri parts escaping

This commit is contained in:
Gani Georgiev
2025-03-28 19:28:04 +02:00
parent d68786df9c
commit b5be7f2d3c
8 changed files with 201 additions and 26 deletions

View File

@ -19,7 +19,7 @@ func TestResponseErrorSerialization(t *testing.T) {
</Error>
`
respErr := s3.ResponseError{
respErr := &s3.ResponseError{
Status: 123,
Raw: []byte("test"),
}
@ -45,17 +45,17 @@ func TestResponseErrorSerialization(t *testing.T) {
func TestResponseErrorErrorInterface(t *testing.T) {
scenarios := []struct {
name string
err s3.ResponseError
err *s3.ResponseError
expected string
}{
{
"empty",
s3.ResponseError{},
&s3.ResponseError{},
"0 S3ResponseError",
},
{
"with code and message (nil raw)",
s3.ResponseError{
&s3.ResponseError{
Status: 123,
Code: "test_code",
Message: "test_message",
@ -64,7 +64,7 @@ func TestResponseErrorErrorInterface(t *testing.T) {
},
{
"with code and message (non-nil raw)",
s3.ResponseError{
&s3.ResponseError{
Status: 123,
Code: "test_code",
Message: "test_message",