Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.14.0
-
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
- links to