[
https://issues.apache.org/jira/browse/NIFI-9054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17401702#comment-17401702
]
ASF subversion and git services commented on NIFI-9054:
-------------------------------------------------------
Commit 388b79d1ee48f532b726872c0a21fb9f6284baca in nifi's branch
refs/heads/main from Róbert Kalmár
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=388b79d ]
NIFI-9054 Calling Nifi Registry's createExtensionBundleVersion REST endpoint
will cause NullPointerException (#5309)
Co-authored-by: Robert Kalmar <[email protected]>
> Calling Nifi Registry's createExtensionBundleVersion REST endpoint will cause
> NullPointerException
> --------------------------------------------------------------------------------------------------
>
> Key: NIFI-9054
> URL: https://issues.apache.org/jira/browse/NIFI-9054
> Project: Apache NiFi
> Issue Type: Bug
> Components: NiFi Registry
> Affects Versions: 1.14.0
> Reporter: Kalmár Róbert
> Assignee: Kalmár Róbert
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When uploading a nar file via
> [this|https://nifi.apache.org/docs/nifi-registry-docs/rest-api/rest-api.html#_createextensionbundleversion]
> API that has an empy *_restricted_* element in it's
> *_extension-manifest.xml_* the request will fail because of a
> NullPointerException
> {code:java}
> 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>)
> {code}
> 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]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)