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

Calling Nifi Registry's createExtensionBundleVersion REST endpoint will cause NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.14.0
    • 1.15.0
    • NiFi Registry
    • None

    Description

      When uploading a nar file via this API that has an empy restricted element in it's extension-manifest.xml the request will fail because of a NullPointerException 

      2021-08-16 11:34:18,736 ERROR org.apache.nifi.registry.web.mapper.ThrowableMapper: An unexpected error has occurred: java.lang.NullPointerException. Returning Internal Server Error response.2021-08-16 11:34:18,736 ERROR org.apache.nifi.registry.web.mapper.ThrowableMapper: An unexpected error has occurred: java.lang.NullPointerException. Returning Internal Server Error response.java.lang.NullPointerException: null at org.apache.nifi.registry.service.extension.StandardExtensionService.getExtensionEntities(StandardExtensionService.java:336) at org.apache.nifi.registry.service.extension.StandardExtensionService.createBundleVersion(StandardExtensionService.java:260) at org.apache.nifi.registry.web.service.StandardServiceFacade.createBundleVersion(StandardServiceFacade.java:482) at org.apache.nifi.registry.web.service.StandardServiceFacade$$FastClassBySpringCGLIB$$8b3bf0a8.invoke(<generated>)
      

      It looks like Jackson has changed it's behavior regarding empty xml elements in version 1.12.0

      https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.12

       

      Attachments

        Issue Links

          Activity

            People

              rkalmar Kalmár Róbert
              rkalmar Kalmár Róbert
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 0.5h
                  0.5h