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 hanging upload when not specifying chunk size #2094

Merged
merged 1 commit into from
Oct 30, 2019

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Oct 30, 2019

Q A
Type bug
BC Break no
Fixed issues Fixes #2087

@jmikola The issue is caused by mongodb/mongodb using isset checks for options. When passing a null option, it will not be validated (as isset returns false) but still assigned. The null value is then interpreted as 0 in various places, leading to an endless loop of reading 0 bytes and not inserting an empty chunk. This is something we may want to address, so I've created PHPLIB-494 to track this.

@alcaeus alcaeus requested a review from malarzm October 30, 2019 14:25
@alcaeus alcaeus self-assigned this Oct 30, 2019
@alcaeus alcaeus added the Bug label Oct 30, 2019
@alcaeus alcaeus added this to 2.0 (bug fixes only) in Roadmap Oct 30, 2019
@alcaeus alcaeus added this to the 2.0.2 milestone Oct 30, 2019
@alcaeus
Copy link
Member Author

alcaeus commented Oct 30, 2019

Merging - build was stable but travis-ci somehow didn't report this to GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants