[jira] [Commented] (NIFI-436) SplitText should allow changing the endline regex
[ https://issues.apache.org/jira/browse/NIFI-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338835#comment-15338835 ] Karthik Narayanan commented on NIFI-436: Ok, how would we handle the base issue of the jira, where the newline character may be in the data. if there are LF characters in the data and CRLF are the line endings, that would cause splittext to fail if AUTO-DETECT is enabled. Would it may be make sense to have properties for data enclosures ex. " , which is very frequent in case of files where data contains speical character. May be a property for escape character as well. > SplitText should allow changing the endline regex > - > > Key: NIFI-436 > URL: https://issues.apache.org/jira/browse/NIFI-436 > Project: Apache NiFi > Issue Type: Improvement >Affects Versions: 0.6.1 >Reporter: Jon Parise >Assignee: Karthik Narayanan > Labels: beginner > Fix For: 1.0.0 > > Attachments: nifi-4361x.patch > > > I have a CSV file in a format that inidcates the end of a line with a crlf. > This file has embedded comments that have lf in them. > When I run this file through the split text processor, it is splitting at the > LF characters. > I think it would be nice to have a setting to change the line ending > characters for splitting text. > I can't find anything in the documentation that indicates how I would change > this behavior, so I assume it does not exist. > Also, I would be willing to try and implement this improvement, but I can't > seem to find the source for the SplitTextProcessor. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (NIFI-1537) Add SNMP processors
[ https://issues.apache.org/jira/browse/NIFI-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Zhurakousky updated NIFI-1537: --- Fix Version/s: 1.0.0 > Add SNMP processors > --- > > Key: NIFI-1537 > URL: https://issues.apache.org/jira/browse/NIFI-1537 > Project: Apache NiFi > Issue Type: Improvement > Components: Extensions >Affects Versions: 0.5.0 >Reporter: Pierre Villard >Assignee: Pierre Villard >Priority: Minor > Labels: snmp > Fix For: 1.0.0, 0.7.0 > > > Add SNMP processors: > - GetSNMP to allow "get"/"walk" > - SetSNMP to allow "set" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1537) Add SNMP processors
[ https://issues.apache.org/jira/browse/NIFI-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338698#comment-15338698 ] ASF subversion and git services commented on NIFI-1537: --- Commit a6e97740c102e22917f4ebb3e1572e6918a3b55a in nifi's branch refs/heads/0.x from [~pvillard] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=a6e9774 ] NIFI-1537 Added SNMP processors This closes #257 > Add SNMP processors > --- > > Key: NIFI-1537 > URL: https://issues.apache.org/jira/browse/NIFI-1537 > Project: Apache NiFi > Issue Type: Improvement > Components: Extensions >Affects Versions: 0.5.0 >Reporter: Pierre Villard >Assignee: Pierre Villard >Priority: Minor > Labels: snmp > Fix For: 0.7.0 > > > Add SNMP processors: > - GetSNMP to allow "get"/"walk" > - SetSNMP to allow "set" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[2/2] nifi git commit: NIFI-1537 Added SNMP processors This closes #257
NIFI-1537 Added SNMP processors This closes #257 Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/a6e97740 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/a6e97740 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/a6e97740 Branch: refs/heads/0.x Commit: a6e97740c102e22917f4ebb3e1572e6918a3b55a Parents: 1398312 Author: Pierre Villard Authored: Sun Feb 28 10:12:02 2016 +0100 Committer: Oleg Zhurakousky Committed: Sun Jun 19 15:00:33 2016 -0400 -- nifi-assembly/pom.xml | 5 + .../nifi-snmp-bundle/nifi-snmp-nar/pom.xml | 35 ++ .../src/main/resources/META-INF/LICENSE | 203 + .../src/main/resources/META-INF/NOTICE | 24 ++ .../nifi-snmp-processors/pom.xml| 81 .../snmp/processors/AbstractSNMPProcessor.java | 426 +++ .../apache/nifi/snmp/processors/GetSNMP.java| 177 .../apache/nifi/snmp/processors/SNMPGetter.java | 100 + .../apache/nifi/snmp/processors/SNMPSetter.java | 56 +++ .../apache/nifi/snmp/processors/SNMPUtils.java | 268 .../apache/nifi/snmp/processors/SNMPWorker.java | 74 .../apache/nifi/snmp/processors/SetSNMP.java| 224 ++ .../org.apache.nifi.processor.Processor | 16 + .../additionalDetails.html | 70 +++ .../additionalDetails.html | 58 +++ .../nifi/snmp/processors/GetSNMPTest.java | 385 + .../nifi/snmp/processors/SNMPGetTest.java | 123 ++ .../nifi/snmp/processors/SNMPUtilsTest.java | 134 ++ .../nifi/snmp/processors/SNMPWalkTest.java | 121 ++ .../nifi/snmp/processors/SetSNMPTest.java | 332 +++ .../nifi/snmp/processors/TestSnmpAgentV1.java | 212 + .../nifi/snmp/processors/TestSnmpAgentV2c.java | 212 + .../nifi/snmp/processors/TestSnmpAgentV3.java | 255 +++ .../nifi/snmp/processors/WalkSNMPTest.java | 117 + .../src/test/resources/log4j.properties | 20 + nifi-nar-bundles/nifi-snmp-bundle/pom.xml | 39 ++ nifi-nar-bundles/pom.xml| 1 + pom.xml | 6 + 28 files changed, 3774 insertions(+) -- http://git-wip-us.apache.org/repos/asf/nifi/blob/a6e97740/nifi-assembly/pom.xml -- diff --git a/nifi-assembly/pom.xml b/nifi-assembly/pom.xml index 9d68ba2..f50f6e8 100644 --- a/nifi-assembly/pom.xml +++ b/nifi-assembly/pom.xml @@ -336,6 +336,11 @@ language governing permissions and limitations under the License. --> org.apache.nifi nifi-mqtt-nar nar + + +org.apache.nifi +nifi-snmp-nar +nar org.apache.nifi http://git-wip-us.apache.org/repos/asf/nifi/blob/a6e97740/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/pom.xml -- diff --git a/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/pom.xml b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/pom.xml new file mode 100644 index 000..38e5f27 --- /dev/null +++ b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/pom.xml @@ -0,0 +1,35 @@ + + +http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> +4.0.0 + +org.apache.nifi +nifi-snmp-bundle +1.0.0-SNAPSHOT + +nifi-snmp-nar +nar + +true +true + + + +org.apache.nifi +nifi-snmp-processors + + + http://git-wip-us.apache.org/repos/asf/nifi/blob/a6e97740/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/src/main/resources/META-INF/LICENSE -- diff --git a/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/src/main/resources/META-INF/LICENSE b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/src/main/resources/META-INF/LICENSE new file mode 100644 index 000..6b0b127 --- /dev/null +++ b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/src/main/resources/META-INF/LICENSE @@ -0,0 +1,203 @@ + + Apache License + Version 2.0, January 2004 +http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or
[jira] [Commented] (NIFI-1537) Add SNMP processors
[ https://issues.apache.org/jira/browse/NIFI-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338697#comment-15338697 ] ASF GitHub Bot commented on NIFI-1537: -- Github user asfgit closed the pull request at: https://github.com/apache/nifi/pull/257 > Add SNMP processors > --- > > Key: NIFI-1537 > URL: https://issues.apache.org/jira/browse/NIFI-1537 > Project: Apache NiFi > Issue Type: Improvement > Components: Extensions >Affects Versions: 0.5.0 >Reporter: Pierre Villard >Assignee: Pierre Villard >Priority: Minor > Labels: snmp > Fix For: 0.7.0 > > > Add SNMP processors: > - GetSNMP to allow "get"/"walk" > - SetSNMP to allow "set" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1537) Add SNMP processors
[ https://issues.apache.org/jira/browse/NIFI-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338696#comment-15338696 ] ASF subversion and git services commented on NIFI-1537: --- Commit 86bba1b20241fb8f21eccf08f5a56b2fda12e740 in nifi's branch refs/heads/master from [~pvillard] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=86bba1b ] NIFI-1537 Added SNMP processors This closes #257 > Add SNMP processors > --- > > Key: NIFI-1537 > URL: https://issues.apache.org/jira/browse/NIFI-1537 > Project: Apache NiFi > Issue Type: Improvement > Components: Extensions >Affects Versions: 0.5.0 >Reporter: Pierre Villard >Assignee: Pierre Villard >Priority: Minor > Labels: snmp > Fix For: 0.7.0 > > > Add SNMP processors: > - GetSNMP to allow "get"/"walk" > - SetSNMP to allow "set" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[1/2] nifi git commit: NIFI-1537 Added SNMP processors This closes #257
Repository: nifi Updated Branches: refs/heads/0.x 139831241 -> a6e97740c http://git-wip-us.apache.org/repos/asf/nifi/blob/a6e97740/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/resources/docs/org.apache.nifi.snmp.processors.SetSNMP/additionalDetails.html -- diff --git a/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/resources/docs/org.apache.nifi.snmp.processors.SetSNMP/additionalDetails.html b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/resources/docs/org.apache.nifi.snmp.processors.SetSNMP/additionalDetails.html new file mode 100644 index 000..3e0fb25 --- /dev/null +++ b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/resources/docs/org.apache.nifi.snmp.processors.SetSNMP/additionalDetails.html @@ -0,0 +1,58 @@ + + + + + +SetSNMP + + + + +Summary + +This processor sends SNMP set requests to a SNMP agent in order to update information associated to a given OID. This processor supports +SNMPv1, SNMPv2c and SNMPv3. The component is based on http://www.snmp4j.org/";>SNMP4J. + + +The processor constructs SNMP Set requests by extracting information from FlowFile attributes. The processor is looking for attributes +prefixed with snmp$. If such an attribute is found, the attribute name is splitted using the $ character. The second element must +respect the OID format to be considered as a valid OID. If there is a third element, it must represents the SMI Syntax integer value of +the type of data associated to the given OID to allow a correct conversion. If there is no third element, the value is considered as a String +and the value will be sent as an OctetString object. + +Configuration Details + +At the time of writing this document it only defines the essential configuration properties which are suitable for most cases. +Other properties will be defined later as this component progresses. +Configuring SetSNMP: + + +Host - [REQUIRED] the name of the host where the SNMP agent is running. (default is localhost) +Port - [REQUIRED] the port number on which the SNMP agent is listening. (default is 161) +Version - [REQUIRED] the SNMP version to use (SNMPv1 [default], or SNMPv2c, or SNMPv3) +Community - [REQUIRED if SNMPv1 or SNMPv2c] the SNMP community to use. (default is public) +Security Level - [REQUIRED if SNMPv3] the security level to use. (default is authPriv) +Security Name - [REQUIRED if SNMPv3] the security name (user name) to use. +Authentication Protocol - [REQUIRED if SNMPv3 and authNoPriv or authPriv] the authentication protocol to use. +Authentication Password - [REQUIRED if SNMPv3 and authNoPriv or authPriv] the authentication password to use. +Private Protocol - [REQUIRED if SNMPv3 and authPriv] the private protocol to use. +Private Password - [REQUIRED if SNMPv3 and authPriv] the private password to use. +Retries - [REQUIRED] Sets the number of retries to be performed before a request is timed out. (default is 0) +Timeout - [REQUIRED] Sets timeout in milliseconds before a confirmed request is resent or timed out. (default is 5000) + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/nifi/blob/a6e97740/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/test/java/org/apache/nifi/snmp/processors/GetSNMPTest.java -- diff --git a/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/test/java/org/apache/nifi/snmp/processors/GetSNMPTest.java b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/test/java/org/apache/nifi/snmp/processors/GetSNMPTest.java new file mode 100644 index 000..aed6d9c --- /dev/null +++ b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/test/java/org/apache/nifi/snmp/processors/GetSNMPTest.java @@ -0,0 +1,385 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.nifi.snmp.processors; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTru
[2/2] nifi git commit: NIFI-1537 Added SNMP processors This closes #257
NIFI-1537 Added SNMP processors This closes #257 Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/86bba1b2 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/86bba1b2 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/86bba1b2 Branch: refs/heads/master Commit: 86bba1b20241fb8f21eccf08f5a56b2fda12e740 Parents: b1b7e35 Author: Pierre Villard Authored: Sun Feb 28 10:12:02 2016 +0100 Committer: Oleg Zhurakousky Committed: Sun Jun 19 14:58:41 2016 -0400 -- nifi-assembly/pom.xml | 5 + .../nifi-snmp-bundle/nifi-snmp-nar/pom.xml | 35 ++ .../src/main/resources/META-INF/LICENSE | 203 + .../src/main/resources/META-INF/NOTICE | 24 ++ .../nifi-snmp-processors/pom.xml| 81 .../snmp/processors/AbstractSNMPProcessor.java | 426 +++ .../apache/nifi/snmp/processors/GetSNMP.java| 177 .../apache/nifi/snmp/processors/SNMPGetter.java | 100 + .../apache/nifi/snmp/processors/SNMPSetter.java | 56 +++ .../apache/nifi/snmp/processors/SNMPUtils.java | 268 .../apache/nifi/snmp/processors/SNMPWorker.java | 74 .../apache/nifi/snmp/processors/SetSNMP.java| 224 ++ .../org.apache.nifi.processor.Processor | 16 + .../additionalDetails.html | 70 +++ .../additionalDetails.html | 58 +++ .../nifi/snmp/processors/GetSNMPTest.java | 385 + .../nifi/snmp/processors/SNMPGetTest.java | 123 ++ .../nifi/snmp/processors/SNMPUtilsTest.java | 134 ++ .../nifi/snmp/processors/SNMPWalkTest.java | 121 ++ .../nifi/snmp/processors/SetSNMPTest.java | 332 +++ .../nifi/snmp/processors/TestSnmpAgentV1.java | 212 + .../nifi/snmp/processors/TestSnmpAgentV2c.java | 212 + .../nifi/snmp/processors/TestSnmpAgentV3.java | 255 +++ .../nifi/snmp/processors/WalkSNMPTest.java | 117 + .../src/test/resources/log4j.properties | 20 + nifi-nar-bundles/nifi-snmp-bundle/pom.xml | 39 ++ nifi-nar-bundles/pom.xml| 1 + pom.xml | 6 + 28 files changed, 3774 insertions(+) -- http://git-wip-us.apache.org/repos/asf/nifi/blob/86bba1b2/nifi-assembly/pom.xml -- diff --git a/nifi-assembly/pom.xml b/nifi-assembly/pom.xml index 888533b..0ae6237 100644 --- a/nifi-assembly/pom.xml +++ b/nifi-assembly/pom.xml @@ -331,6 +331,11 @@ language governing permissions and limitations under the License. --> org.apache.nifi nifi-mqtt-nar nar + + +org.apache.nifi +nifi-snmp-nar +nar org.apache.nifi http://git-wip-us.apache.org/repos/asf/nifi/blob/86bba1b2/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/pom.xml -- diff --git a/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/pom.xml b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/pom.xml new file mode 100644 index 000..38e5f27 --- /dev/null +++ b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/pom.xml @@ -0,0 +1,35 @@ + + +http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> +4.0.0 + +org.apache.nifi +nifi-snmp-bundle +1.0.0-SNAPSHOT + +nifi-snmp-nar +nar + +true +true + + + +org.apache.nifi +nifi-snmp-processors + + + http://git-wip-us.apache.org/repos/asf/nifi/blob/86bba1b2/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/src/main/resources/META-INF/LICENSE -- diff --git a/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/src/main/resources/META-INF/LICENSE b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/src/main/resources/META-INF/LICENSE new file mode 100644 index 000..6b0b127 --- /dev/null +++ b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-nar/src/main/resources/META-INF/LICENSE @@ -0,0 +1,203 @@ + + Apache License + Version 2.0, January 2004 +http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner
[1/2] nifi git commit: NIFI-1537 Added SNMP processors This closes #257
Repository: nifi Updated Branches: refs/heads/master b1b7e35be -> 86bba1b20 http://git-wip-us.apache.org/repos/asf/nifi/blob/86bba1b2/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/resources/docs/org.apache.nifi.snmp.processors.SetSNMP/additionalDetails.html -- diff --git a/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/resources/docs/org.apache.nifi.snmp.processors.SetSNMP/additionalDetails.html b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/resources/docs/org.apache.nifi.snmp.processors.SetSNMP/additionalDetails.html new file mode 100644 index 000..3e0fb25 --- /dev/null +++ b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/resources/docs/org.apache.nifi.snmp.processors.SetSNMP/additionalDetails.html @@ -0,0 +1,58 @@ + + + + + +SetSNMP + + + + +Summary + +This processor sends SNMP set requests to a SNMP agent in order to update information associated to a given OID. This processor supports +SNMPv1, SNMPv2c and SNMPv3. The component is based on http://www.snmp4j.org/";>SNMP4J. + + +The processor constructs SNMP Set requests by extracting information from FlowFile attributes. The processor is looking for attributes +prefixed with snmp$. If such an attribute is found, the attribute name is splitted using the $ character. The second element must +respect the OID format to be considered as a valid OID. If there is a third element, it must represents the SMI Syntax integer value of +the type of data associated to the given OID to allow a correct conversion. If there is no third element, the value is considered as a String +and the value will be sent as an OctetString object. + +Configuration Details + +At the time of writing this document it only defines the essential configuration properties which are suitable for most cases. +Other properties will be defined later as this component progresses. +Configuring SetSNMP: + + +Host - [REQUIRED] the name of the host where the SNMP agent is running. (default is localhost) +Port - [REQUIRED] the port number on which the SNMP agent is listening. (default is 161) +Version - [REQUIRED] the SNMP version to use (SNMPv1 [default], or SNMPv2c, or SNMPv3) +Community - [REQUIRED if SNMPv1 or SNMPv2c] the SNMP community to use. (default is public) +Security Level - [REQUIRED if SNMPv3] the security level to use. (default is authPriv) +Security Name - [REQUIRED if SNMPv3] the security name (user name) to use. +Authentication Protocol - [REQUIRED if SNMPv3 and authNoPriv or authPriv] the authentication protocol to use. +Authentication Password - [REQUIRED if SNMPv3 and authNoPriv or authPriv] the authentication password to use. +Private Protocol - [REQUIRED if SNMPv3 and authPriv] the private protocol to use. +Private Password - [REQUIRED if SNMPv3 and authPriv] the private password to use. +Retries - [REQUIRED] Sets the number of retries to be performed before a request is timed out. (default is 0) +Timeout - [REQUIRED] Sets timeout in milliseconds before a confirmed request is resent or timed out. (default is 5000) + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/nifi/blob/86bba1b2/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/test/java/org/apache/nifi/snmp/processors/GetSNMPTest.java -- diff --git a/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/test/java/org/apache/nifi/snmp/processors/GetSNMPTest.java b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/test/java/org/apache/nifi/snmp/processors/GetSNMPTest.java new file mode 100644 index 000..aed6d9c --- /dev/null +++ b/nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/test/java/org/apache/nifi/snmp/processors/GetSNMPTest.java @@ -0,0 +1,385 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.nifi.snmp.processors; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assert
[jira] [Commented] (NIFI-1537) Add SNMP processors
[ https://issues.apache.org/jira/browse/NIFI-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338636#comment-15338636 ] ASF GitHub Bot commented on NIFI-1537: -- Github user olegz commented on the issue: https://github.com/apache/nifi/pull/257 @pvillard31 Had a merge conflict again, but fixed it myself. Nothing to do, just making comment for traceability. > Add SNMP processors > --- > > Key: NIFI-1537 > URL: https://issues.apache.org/jira/browse/NIFI-1537 > Project: Apache NiFi > Issue Type: Improvement > Components: Extensions >Affects Versions: 0.5.0 >Reporter: Pierre Villard >Assignee: Pierre Villard >Priority: Minor > Labels: snmp > Fix For: 0.7.0 > > > Add SNMP processors: > - GetSNMP to allow "get"/"walk" > - SetSNMP to allow "set" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1620) Allow empty Content-Type in InvokeHTTP processor
[ https://issues.apache.org/jira/browse/NIFI-1620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338601#comment-15338601 ] ASF GitHub Bot commented on NIFI-1620: -- Github user JPercivall commented on the issue: https://github.com/apache/nifi/pull/272 Thanks for the assist @apiri > Allow empty Content-Type in InvokeHTTP processor > > > Key: NIFI-1620 > URL: https://issues.apache.org/jira/browse/NIFI-1620 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions >Affects Versions: 0.5.1 >Reporter: Pierre Villard >Assignee: Pierre Villard > Fix For: 1.0.0, 0.7.0 > > > External API could expect a POST request without a Content-Type property or > at least with this property empty: > *Error example:* > {quote} > You provided a non-empty HTTP "Content-Type" header ("application/json"). > This API function requires that the header be missing or empty. > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1751) Update HTTP processors to allow a proxy authentication strategy
[ https://issues.apache.org/jira/browse/NIFI-1751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338589#comment-15338589 ] ASF GitHub Bot commented on NIFI-1751: -- Github user apiri commented on the issue: https://github.com/apache/nifi/pull/398 Hey @pvillard31, I did a review of this and it seems to work mostly well using Squid with the following config: ``` auth_param basic program /usr/local/Cellar/squid/3.5.19/libexec/basic_ncsa_auth /usr/local/etc/squid.passwords auth_param basic realm proxy acl authenticated proxy_auth REQUIRED http_access allow authenticated http_port 3128 ``` and created a proxy user via: ``` htpasswd -c /usr/local/etc/squid.passwords testuser ``` I read through some of your commentary on the ticket and was not able to recreate the conditions you were seeing for HTTPS sites. I tried a few, and all seemed to work as anticipated. I did, however, see the "Too many follow up requests" when using wrong credentials (invalid username/password combination). In terms of handling this, I saw the folks on square/okhttp#2464 recommended using the `Response.priorResponse()` to track such issues in the Authenticator. Let me know your thoughts on how to address that, but overall functions as anticipated and code looks fine. > Update HTTP processors to allow a proxy authentication strategy > --- > > Key: NIFI-1751 > URL: https://issues.apache.org/jira/browse/NIFI-1751 > Project: Apache NiFi > Issue Type: Improvement >Reporter: David A. Wynne >Assignee: Pierre Villard >Priority: Minor > > If trying to use the HTTP processors from behind a proxy server, the > following error occurs: > Received error HTTP_ERROR: HTTP/1.1 407 Proxy Authentication Required. Will > attempt to reconnect > The library NiFi uses for HTTP processors has the ability to set a proxy > authentication strategy but currently doesn't use it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1815) Tesseract OCR Processor
[ https://issues.apache.org/jira/browse/NIFI-1815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338572#comment-15338572 ] ASF GitHub Bot commented on NIFI-1815: -- Github user jdye64 commented on a diff in the pull request: https://github.com/apache/nifi/pull/397#discussion_r67618912 --- Diff: nifi-nar-bundles/nifi-ocr-bundle/nifi-ocr-processors/src/test/resources/tessdata/tessconfigs/nobatch --- @@ -0,0 +1 @@ + --- End diff -- @mattyb149 this is an empty configuration file. It can be used in conjunction with whitelisting of detected words so I thought it would make sense to leave it there in case someone wanted to add unit testing around those capabilities at a later time. > Tesseract OCR Processor > --- > > Key: NIFI-1815 > URL: https://issues.apache.org/jira/browse/NIFI-1815 > Project: Apache NiFi > Issue Type: Improvement >Reporter: Jeremy Dyer >Assignee: Jeremy Dyer > Attachments: 0006-changes-to-the-OCR-processor.patch, > nifi_1815_1.x_patch.zip > > > This ticket is a follow-up to NIFI-1718 minus the use of the Tika library > Expose OCR capabilities through a new processor which uses the Tesseract > library. Use of this processor would require that Tesseract be installed on > the NiFi host. Since the processor will have a system dependency care must be > taken to ensure that the overall NiFi cluster continues to function properly > in the absence of the Tesseract system dependency even though the OCR > processor itself will be unable to perform its duties. In the event that the > system dependencies are not detected the processor should display a > validation warning rather than failing or preventing the NiFi instance from > booting properly. > Properties expose to configure Tesseract > tesseractPath - Path to tesseract installation folder, if not on system path. > language - Language ID (e.g. "eng"); language dictionary to be used. > pageSegMode - Tesseract page segmentation mode, defaults to 1. > minFileSizeToOcr - Minimum file size to submit file to OCR, defaults to 0. > maxFileSizeToOcr - Maximum file size to submit file to OCR, defaults to > Integer.MAX_VALUE. > timeout - Maximum time (in seconds) to wait for the OCR process termination; > defaults to 120. -- This message was sent by Atlassian JIRA (v6.3.4#6332)