Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix listObjects hang when listing special characters #1165

Merged
merged 1 commit into from
Sep 23, 2019

Conversation

harshavardhana
Copy link
Member

This PR 1e01719 introduced
a regression in handling special character file listing, this
causes mc ls like commands to hang.

Fixes minio/mc#2903

@harshavardhana
Copy link
Member Author

To reproduce

~ for i in $(seq 1 1000); do mc cp 1++1 myminio-local1/testbucket/prefix/1++1-${i}; done
~ mc ls myminio-local1/testbucket/prefix/

This will hang forever listing first 1000 entries repeatedly.

kannappanr
kannappanr previously approved these changes Sep 23, 2019
Copy link
Collaborator

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@harshavardhana NextContinuationToken needs also to be unescaped in ListObjectsV2

@harshavardhana
Copy link
Member Author

@vadmeste looks like that is only for MinIO since it's an opaque value in AWS S3

This PR 1e01719 introduced
a regression in handling special character file listing, this
causes `mc ls` like commands to hang.

Fixes minio/mc#2903
Copy link
Collaborator

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM & tested

@harshavardhana harshavardhana merged commit 89d5404 into minio:master Sep 23, 2019
@harshavardhana harshavardhana deleted the fix-list branch September 23, 2019 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Commands returning URL query-escaped filenames
3 participants