Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7702

Nifi web api crashes due to empty payload causing NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.11.4
    • 1.12.0
    • Flow Versioning
    • None

    Description

      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
       

      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 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xtreak Karthikeyan Singaravelan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h