NIFI-16315 Reject oversized PutUDP FlowFiles before copying content - #11642
Conversation
| return; | ||
| } | ||
|
|
||
| if (flowFile.getSize() > MAX_IPV4_UDP_PAYLOAD_LENGTH) { |
There was a problem hiding this comment.
Should this limit account for the destination address family? IPv6 supports UDP payloads up to 65,527 bytes, so this check rejects some payloads that PutUDP can currently send to IPv6 destinations.
There was a problem hiding this comment.
hmm - good point. will look into that.
exceptionfactory
left a comment
There was a problem hiding this comment.
Not directly related to the changes in this pull request, but it makes me think we should consider deprecating this Processor.
|
Got ya @exceptionfactory i'll create another PR for that as well because I totally agree. This processor is pretty nonsensical (now...when it was first used...kinda cool) |
I opened PR #11649 to deprecate |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for the updates @joewitt, the functional changes look good.
Given that this Processor is now deprecated, I don't think the new Test class is needed, so I would prefer to remove it and just keep the minor update to TestPutUDP.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Retain the oversized payload coverage in TestPutUDP and remove the standalone test class following deprecation of the processor. Co-authored-by: Cursor <cursoragent@cursor.com>
understood - new commit should achieve that. also rebased given deprecation |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for removing the extra test @joewitt, the latest version looks good.
Summary
NIFI-16315
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000VerifiedstatusPull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation