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

Nifi web api crashes due to empty payload causing NullPointerException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.11.4
    • Fix Version/s: 1.12.0
    • Component/s: Flow Versioning
    • Labels:
      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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xtreak Karthikeyan Singaravelan

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment