[
https://issues.apache.org/jira/browse/NIFI-9232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bob Thomson closed NIFI-9232.
-----------------------------
> NiFI Registry upload-bundle
> ----------------------------
>
> Key: NIFI-9232
> URL: https://issues.apache.org/jira/browse/NIFI-9232
> Project: Apache NiFi
> Issue Type: Bug
> Components: NiFi Registry
> Affects Versions: 1.14.0
> Environment: Standard Linux NiFi environment
> Reporter: Michal Struzek
> Priority: Trivial
>
> Apache NiFi Registry with release 1.14.0
>
> ----------------- Issue Reproduction
> > bin/cli.sh registry upload-bundle --bucketIdentifier
> > eac8c132-4f01-4468-bb3a-9f42067e4caf -ebt nifi-nar -ebf
> > /opt/nifi-1.14.0/lib/nifi-mqtt-nar-1.14.0.nar -u
> > [http://127.0.0.1:18080|http://127.0.0.1:18080/]
>
> > ERROR: Error executing command 'upload-bundle' : Error creating extension
> > bundle version: An unexpected error has occurred. Please check the logs for
> > additional details.
>
> org.apache.nifi.registry.service.extension.StandardExtensionService#getExtensionEntities
> : 336
>
> {code:java}
> // NullPointerException.class from getRestrictions() from missing branch
> when mapping extension
>
> extensionEntity.getRestrictions().forEach(r -> {
> r.setId(UUID.randomUUID().toString());
> r.setExtensionId(extensionEntity.getId());
> });
> {code}
>
> org.apache.nifi.registry.service.mapper.ExtensionMappings:213
> {code:java}
> if (extension.getRestricted() != null) {
> if (extension.getRestricted().getRestrictions() != null) {
> entity.setRestrictions(extension.getRestricted().getRestrictions().stream()
> .map(r -> map(r))
> .collect(Collectors.toSet()));
> }
> } else {
> entity.setRestrictions(Collections.emptySet());
> }
> {code}
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)