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

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

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

    https://github.com/apache/nifi/pull/1692#discussion_r113932077
  
    --- Diff: 
nifi-nar-bundles/nifi-cybersecurity-bundle/nifi-cybersecurity-processors/src/main/java/org/apache/nifi/processors/cybersecurity/FuzzyHashContent.java
 ---
    @@ -178,11 +161,11 @@ public void process(final InputStream in) throws 
IOException {
                         try (ByteArrayOutputStream holder = new 
ByteArrayOutputStream()) {
                             StreamUtils.copy(in,holder);
     
    -                        if 
(context.getProperty(HASH_ALGORITHM).getValue().equals(allowableValueSSDEEP.getValue()))
 {
    +                        if 
(algorithm.equals(allowableValueSSDEEP.getValue())) {
    --- End diff --
    
    added to the same class as the checkMinimumRequirements. wonder if we 
should create a separate class just to hold those help functions?


> Create FuzzyHash comparison processor
> -------------------------------------
>
>                 Key: NIFI-3726
>                 URL: https://issues.apache.org/jira/browse/NIFI-3726
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Andre F de Miranda
>            Assignee: Andre F de Miranda
>
> Now that NiFi cyber-security package supports "Fuzzy Hashing" it may be a 
> good idea to support a processor that makes use of it for comparison and 
> routing of matches



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to