Skip to content

Commit

Permalink
Package AWS :
Browse files Browse the repository at this point in the history
- Fix bug while check key len : min size was 3, AWS reference API S3 say min len is 1
Update :
- Bump dependencies
  • Loading branch information
Nicolas JUHEL committed Oct 25, 2022
1 parent 667220a commit 7139797
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aws/object/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (cli *client) WalkPrefix(prefix string, f WalkFunc) liberr.Error {
}

for _, o := range out.Contents {
if o.Key == nil || len(*o.Key) < 3 {
if o.Key == nil || len(*o.Key) < 1 {
continue
}

Expand Down
4 changes: 2 additions & 2 deletions aws/object/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (cli *client) VersionWalkPrefix(prefix string, fv VersionWalkFunc, fd DelMa
}

for _, o := range out.Versions {
if o.Key == nil || len(*o.Key) < 3 {
if o.Key == nil || len(*o.Key) < 1 {
continue
} else if o.VersionId == nil || len(*o.VersionId) < 1 {
continue
Expand All @@ -106,7 +106,7 @@ func (cli *client) VersionWalkPrefix(prefix string, fv VersionWalkFunc, fd DelMa
}

for _, o := range out.DeleteMarkers {
if o.Key == nil || len(*o.Key) < 3 {
if o.Key == nil || len(*o.Key) < 1 {
continue
} else if o.VersionId == nil || len(*o.VersionId) < 1 {
continue
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ require (
github.com/Azure/go-ntlmssp v0.0.0-20220621081337-cb9428e4ac1e // indirect
github.com/ClickHouse/ch-go v0.48.0 // indirect
github.com/ClickHouse/clickhouse-go/v2 v2.3.0 // indirect
github.com/DataDog/zstd v1.5.2 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
Expand Down Expand Up @@ -96,9 +95,9 @@ require (
github.com/cockroachdb/pebble v0.0.0-20210331181633-27fc006b8bfb // indirect
github.com/cockroachdb/redact v1.0.6 // indirect
github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect
github.com/getsentry/sentry-go v0.14.0 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-asn1-ber/asn1-ber v1.5.4 // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-faster/city v1.0.1 // indirect
github.com/go-faster/errors v0.6.1 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
Expand Down

0 comments on commit 7139797

Please sign in to comment.