[
https://issues.apache.org/jira/browse/NIFI-7702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17170829#comment-17170829
]
Jeyassri Balachandran commented on NIFI-7702:
---------------------------------------------
[https://github.com/shreeju/nifi/commit/17f2d23857803d60aaf1292d4f5e778b4fffb114]
Github PR: [https://github.com/apache/nifi/pull/4447]
Please review it and let me know if it needs to be improved.
> Nifi web api crashes due to empty payload causing NullPointerException
> ----------------------------------------------------------------------
>
> Key: NIFI-7702
> URL: https://issues.apache.org/jira/browse/NIFI-7702
> Project: Apache NiFi
> Issue Type: Bug
> Components: Flow Versioning
> Affects Versions: 1.11.4
> Reporter: Karthikeyan Singaravelan
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> This is similar to below tickets where empty payload causes the server to
> crash. The fix would be to ensure the request object is validated to be null.
> I am assigning it to Jeyassri Balchandran who would like to make a first
> contribution to Nifi.
>
> https://issues.apache.org/jira/browse/NIFI-7691
> https://issues.apache.org/jira/browse/NIFI-7682
>
> {code:java}
> curl -X PUT http://localhost:8080/nifi-api/controller-services/123/references
> ControllerServiceResource.java:467
> curl -X PUT http://localhost:8080/nifi-api/versions/active-requests/123
> VersionsResource.java:287
> curl -X PUT http://localhost:8000/nifi-api/versions/process-groups/123
> VersionsResource.java:790 {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)