You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Michal Struzek (Jira)" <ji...@apache.org> on 2021/09/21 12:56:00 UTC

[jira] [Created] (NIFI-9232) NiFI Registry upload-bundle

Michal Struzek created NIFI-9232:
------------------------------------

             Summary: 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


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.3.4#803005)