Github user pvillard31 commented on the pull request:
https://github.com/apache/nifi/pull/272#issuecomment-196200486
Definitely agree with you that this API should not act this way.
Anyway, just to clarify, this is only in the case there is no body/content
sent with the request.
That's why, in a message on the mailing list, I suggested to add a "body"
property. If this property is set (possibly set to empty), the possible
(incoming relationship is not mandatory with this processor) incoming flow file
is ignored to set content and the request body is constructed with the
property. This way we can validate the empty content type if and only if body
is set to empty.
Let me know if that makes sense.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---