[
https://issues.apache.org/jira/browse/NIFI-15238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18040407#comment-18040407
]
Daniel Stieglitz commented on NIFI-15238:
-----------------------------------------
The initial proposal for this as seen in PR #10551 was to force arbitrary
methods to be encased in a Expression Language expression for example
$\{literal('TRACE')}
thereby allowing for validation on entered HTTP methods. This PR was closed due
to the fact that this solution could break configurations that are using other
verbs.
> Enforce the value for the HTTP_METHOD property in InvokeHTTP when not
> specified as an Expression Language Expression or an arbitrary method
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-15238
> URL: https://issues.apache.org/jira/browse/NIFI-15238
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The HTTP_METHOD property in InvokeHTTP currently accepts values GET, POST,
> PUT, PATCH, DELETE, HEAD, OPTIONS, an Expression Language expression or a
> value for an arbitrary method (e.g. TRACE). When not specified as an
> Expression Language expression, there is nothing to enforce the value is one
> of GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS. In truth it cannot
> currently be enforced since arbitrary methods are supported thereby not
> allowing to validate specific methods. This ticket proposes a change which
> would allow for validation of basic HTTP methods while skipping validation
> for Expression Language expression and arbitrary methods.
> This ticket proposes to have users encase arbitrary methods using the the
> Expression Language literal method e.g.
> {code:java}
> ${literal('TRACE')}{code}
> thereby allow for validating when a user enters an HTTP method that it be one
> of GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS and for a pass through when
> a Expression Language expression is used.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)