NIFI-15238 Enforced the value for the HTTP_METHOD property in InvokeHTTP when not specified as an Expression Language Expression.#10551
Conversation
…TTP when not specified as an Expression Language Expression.
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for proposing this improvement @dan-s1.
Although the validator includes standard methods, I don't think requiring an Expression Language literal is a great solution.
Methods such as TRACE are unlikely to be used, but it is difficult to know given the current property descriptor. Based on the long-standing history of this Processor and widespread adoption, I think it is better to avoid making this change and just leave it as-is.
|
@exceptionfactory I understand. The motivation of this suggestion was based on a teammate's frustration that there is no immediate validation when a value other than an alternate method and a Expression Language expression were entered. Is there perhaps another way that you could think of which would allow for immediate validation on the basic HTTP methods? |
Thanks for the reply @dan-s1. I can appreciate the challenge on the one hand, given the smaller number of standard HTTP verbs. The problem with the change as implemented is that it could break configurations that are using other verbs, such as There are other possibilities that come to mind based on introducing another property, but |
Summary
NIFI-15238
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation