[
https://issues.apache.org/jira/browse/NIFI-15238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Stieglitz updated NIFI-15238:
------------------------------------
Description:
The HTTP_METHOD property in InvokeHTTP should only take values GET, POST, PUT,
PATCH, DELETE, HEAD, OPTIONS or an Expression Language expression. 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. The reason
partially is that arbitrary methods are supported thereby not allowing to
validate specific 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 is one
of GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS and for a pass through when a
Expression Language expression is used.
was:
The HTTP_METHOD property in InvokeHTTP should only take values GET, POST, PUT,
PATCH, DELETE, HEAD, OPTIONS or an Expression Language expression. 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.
The purpose of this ticket is to add validation when the HTTP_METHOD value is
not a Expression Language expression that it is one of GET, POST, PUT, PATCH,
DELETE, HEAD or OPTIONS. If one wants to specify an arbitrary method, it should
be encased using the Expression Language literal method e.g.
{code:java}
${literal('TRACE')}{code}
to bypass the aforementioned validation.
> Enforce the value for the HTTP_METHOD property in InvokeHTTP when not
> specified as an Expression Language Expression
> --------------------------------------------------------------------------------------------------------------------
>
> 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
>
> The HTTP_METHOD property in InvokeHTTP should only take values GET, POST,
> PUT, PATCH, DELETE, HEAD, OPTIONS or an Expression Language expression. 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.
> The reason partially is that arbitrary methods are supported thereby not
> allowing to validate specific 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 is 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)