[ 
https://issues.apache.org/jira/browse/NIFI-4099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071386#comment-16071386
 ] 

ASF GitHub Bot commented on NIFI-4099:
--------------------------------------

Github user lfrancke commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1941#discussion_r125168336
  
    --- Diff: 
nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/processors/SNMPGetter.java
 ---
    @@ -84,17 +83,21 @@ public ResponseEvent get() {
          * @return the list of {@link TreeEvent}
          */
         public List<TreeEvent> walk() {
    -        TreeUtils treeUtils = new TreeUtils(this.snmp, new 
DefaultPDUFactory());
    -        @SuppressWarnings("unchecked")
    -        List<TreeEvent> events = treeUtils.getSubtree(this.target, 
this.oid);
    -        return events;
    +        DefaultPDUFactory pduFactory = new DefaultPDUFactory();
    +
    +        // BEGIN WORKAROUND - For 
http://oosnmp.net/pipermail/snmp4j/2016-October/005749.html
    --- End diff --
    
    Yes, makes sense.


> SNMP processors cannot be restarted with SNMPv3 & security
> ----------------------------------------------------------
>
>                 Key: NIFI-4099
>                 URL: https://issues.apache.org/jira/browse/NIFI-4099
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.4.0
>            Reporter: Lars Francke
>            Assignee: Lars Francke
>              Labels: snmp
>
> The SNMP processors currently fail when stopped & started again because 
> snmpTarget is not set to null and only if it is are the user credentials 
> added to the current USM/Engine.
> So what happens is that SNMP4j complains that there is no username.
> I'll provide a patch that fixes this.
> In addition I'd like to update SNMP4J from the version that's being used 1.x 
> (from 2009) to 2.5.6 from 2017. And I'd love to also do a code cleanup run. 
> I'd prefer to have it all in one patch (it still won't be large) but if 
> really needed I can separate it out into three patches.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to