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

Release FileUpload, not the wrapped buffer, in NettyCompletedFileUpload #6759

Merged
merged 1 commit into from Jan 18, 2022

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Jan 14, 2022

When controlRelease is set, NettyCompletedFileUpload will retain() the FileUpload instance, however before this patch, it would release the FileUpload.getByteBuf(), not the FileUpload itself.

This bug can be reproduced using UploadSpec#test upload CompletedFileUpload object, but unfortunately does not yield a test failure, only a log message.

Fixes #6710

When `controlRelease` is set, `NettyCompletedFileUpload` will `retain()` the `FileUpload` instance, however before this patch, it would `release` the `FileUpload.getByteBuf()`, not the `FileUpload` itself.

This bug can be reproduced using `UploadSpec#test upload CompletedFileUpload object`, but unfortunately does not yield a test failure, only a log message.

Fixes #6710
@yawkat yawkat added the type: bug Something isn't working label Jan 14, 2022
@yawkat yawkat added this to the 3.2.7 milestone Jan 14, 2022
@jameskleeh jameskleeh merged commit 39cdf30 into 3.2.x Jan 18, 2022
@jameskleeh jameskleeh deleted the upload-release branch January 18, 2022 16:04
yawkat added a commit that referenced this pull request Jan 21, 2022
…ad (#6759)

When `controlRelease` is set, `NettyCompletedFileUpload` will `retain()` the `FileUpload` instance, however before this patch, it would `release` the `FileUpload.getByteBuf()`, not the `FileUpload` itself.

This bug can be reproduced using `UploadSpec#test upload CompletedFileUpload object`, but unfortunately does not yield a test failure, only a log message.

Fixes #6710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IllegalReferenceCountException when calling CompletedFileUpload#getBytes()
3 participants