-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Workaround for Netty MixedFileUpload bug #7730
Conversation
This is a fix for netty/netty#12627 . This patch changes MixedFileUpload to use its own reference count independent of the underlying storage (memory or file), so that the ref count isn't lost when switching storage mode. I copied the DefaultHttpDataFactory and MixedFileUpload from netty to apply this change. We can revert this change once a netty fix is available (though we should keep the test). Fixes #7699
SonarCloud Quality Gate failed. |
not fixing the code smells because they're in copied code and i dont want to modify it further than necessary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we target 3.5.x as the base since this is a bug fix and also use the original Netty license headers?
i couldnt use the original license headers, because of our checkstyle rules, but it's the same license (apache), just with 'netty project' instead of 'original authors' (which would be netty in this case), so i hope it's fine? I don't want to target a patch release because imo it's a fairly intrusive change (essentially replacing two classes) for an issue that not many people seem to hit |
We have exclusions for licenses in |
can you create an issue so that we remember to remove these classes once a patch is available in Netty? |
I think the correct thing is to use the original license headers, but I am not a license expert. Since we are going to delete these files as soon as #7746 is complete, I think it is ok to keep them as they currently are since they are both Apache 2.0. |
This is a fix for netty/netty#12627 . This patch changes MixedFileUpload to use its own reference count independent of the underlying storage (memory or file), so that the ref count isn't lost when switching storage mode. I copied the DefaultHttpDataFactory and MixedFileUpload from netty to apply this change.
We can revert this change once a netty fix is available (though we should keep the test).
Fixes #7699