You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ex...@apache.org on 2023/06/08 21:19:07 UTC

[nifi] branch main updated (36da257e56 -> 02a34034fa)

This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


    from 36da257e56 NIFI-11667 Provide default NiFi version when building dockerhub image
     new 5e6f3abdd2 NIFI-11655 Fixed float and double handling in GenerateRecord
     new 054df20aed NIFI-11665 Upgraded oauth2-oidc-sdk from 9.43.1 to 9.43.3
     new 02a34034fa NIFI-11664 Upgraded WebDriverManager from 3.3.0 to 3.8.1

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 nifi-commons/nifi-property-protection-azure/pom.xml               | 2 +-
 nifi-nar-bundles/nifi-framework-bundle/pom.xml                    | 2 +-
 .../java/org/apache/nifi/processors/standard/GenerateRecord.java  | 7 ++++++-
 .../src/test/resources/TestGenerateRecord/nested_nullable.avsc    | 8 +++++++-
 nifi-registry/nifi-registry-core/nifi-registry-web-ui/pom.xml     | 2 +-
 nifi-registry/nifi-registry-core/pom.xml                          | 2 +-
 6 files changed, 17 insertions(+), 6 deletions(-)


[nifi] 02/03: NIFI-11665 Upgraded oauth2-oidc-sdk from 9.43.1 to 9.43.3

Posted by ex...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git

commit 054df20aed41810755934becd71799e0f2e14026
Author: mr1716 <ms...@rit.edu>
AuthorDate: Thu Jun 8 09:16:27 2023 -0400

    NIFI-11665 Upgraded oauth2-oidc-sdk from 9.43.1 to 9.43.3
    
    This closes #7358
    
    Signed-off-by: David Handermann <ex...@apache.org>
---
 nifi-commons/nifi-property-protection-azure/pom.xml | 2 +-
 nifi-nar-bundles/nifi-framework-bundle/pom.xml      | 2 +-
 nifi-registry/nifi-registry-core/pom.xml            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/nifi-commons/nifi-property-protection-azure/pom.xml b/nifi-commons/nifi-property-protection-azure/pom.xml
index 1116fd8ff4..83c4d0473d 100644
--- a/nifi-commons/nifi-property-protection-azure/pom.xml
+++ b/nifi-commons/nifi-property-protection-azure/pom.xml
@@ -85,7 +85,7 @@
         <dependency>
             <groupId>com.nimbusds</groupId>
             <artifactId>oauth2-oidc-sdk</artifactId>
-            <version>9.43.1</version>
+            <version>9.43.3</version>
         </dependency>
         <dependency>
             <groupId>com.azure</groupId>
diff --git a/nifi-nar-bundles/nifi-framework-bundle/pom.xml b/nifi-nar-bundles/nifi-framework-bundle/pom.xml
index cb37ba224f..fc2a1a80da 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/pom.xml
+++ b/nifi-nar-bundles/nifi-framework-bundle/pom.xml
@@ -280,7 +280,7 @@
             <dependency>
                 <groupId>com.nimbusds</groupId>
                 <artifactId>oauth2-oidc-sdk</artifactId>
-                <version>9.43.1</version>
+                <version>9.43.3</version>
             </dependency>
             <dependency>
                 <groupId>com.nimbusds</groupId>
diff --git a/nifi-registry/nifi-registry-core/pom.xml b/nifi-registry/nifi-registry-core/pom.xml
index fb70362f54..08dba09e61 100644
--- a/nifi-registry/nifi-registry-core/pom.xml
+++ b/nifi-registry/nifi-registry-core/pom.xml
@@ -105,7 +105,7 @@
             <dependency>
                 <groupId>com.nimbusds</groupId>
                 <artifactId>oauth2-oidc-sdk</artifactId>
-                <version>9.43.1</version>
+                <version>9.43.3</version>
             </dependency>
             <dependency>
                 <groupId>com.nimbusds</groupId>


[nifi] 03/03: NIFI-11664 Upgraded WebDriverManager from 3.3.0 to 3.8.1

Posted by ex...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git

commit 02a34034fad62def07e8a885273820e11c395888
Author: mr1716 <ms...@rit.edu>
AuthorDate: Thu Jun 8 09:12:16 2023 -0400

    NIFI-11664 Upgraded WebDriverManager from 3.3.0 to 3.8.1
    
    This closes #7359
    
    Signed-off-by: David Handermann <ex...@apache.org>
---
 nifi-registry/nifi-registry-core/nifi-registry-web-ui/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nifi-registry/nifi-registry-core/nifi-registry-web-ui/pom.xml b/nifi-registry/nifi-registry-core/nifi-registry-web-ui/pom.xml
index dbea7932e0..db0480ad27 100644
--- a/nifi-registry/nifi-registry-core/nifi-registry-web-ui/pom.xml
+++ b/nifi-registry/nifi-registry-core/nifi-registry-web-ui/pom.xml
@@ -421,7 +421,7 @@
         <dependency>
             <groupId>io.github.bonigarcia</groupId>
             <artifactId>webdrivermanager</artifactId>
-            <version>3.3.0</version>
+            <version>3.8.1</version>
             <scope>test</scope>
             <exclusions>
                 <exclusion>


[nifi] 01/03: NIFI-11655 Fixed float and double handling in GenerateRecord

Posted by ex...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git

commit 5e6f3abdd2c57fe2a8b81cdf2c97e7f1b9a0132e
Author: Matt Burgess <ma...@apache.org>
AuthorDate: Wed Jun 7 17:13:16 2023 -0400

    NIFI-11655 Fixed float and double handling in GenerateRecord
    
    This closes #7356
    
    Signed-off-by: David Handermann <ex...@apache.org>
---
 .../java/org/apache/nifi/processors/standard/GenerateRecord.java  | 7 ++++++-
 .../src/test/resources/TestGenerateRecord/nested_nullable.avsc    | 8 +++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GenerateRecord.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GenerateRecord.java
index 39f441aa5f..ae639709f2 100644
--- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GenerateRecord.java
+++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GenerateRecord.java
@@ -59,6 +59,7 @@ import org.apache.nifi.serialization.record.type.MapDataType;
 import org.apache.nifi.serialization.record.type.RecordDataType;
 import org.apache.nifi.util.StringUtils;
 
+import java.math.BigDecimal;
 import java.math.BigInteger;
 import java.time.LocalDate;
 import java.time.ZoneId;
@@ -310,9 +311,13 @@ public class GenerateRecord extends AbstractProcessor {
                 return (char) faker.number().numberBetween(Character.MIN_VALUE, Character.MAX_VALUE);
             case DATE:
                 return FakerUtils.getFakeData(DEFAULT_DATE_PROPERTY_NAME, faker);
-            case DECIMAL:
             case DOUBLE:
+                return faker.number().randomDouble(6, Long.MIN_VALUE, Long.MAX_VALUE);
             case FLOAT:
+                final double randomDouble = faker.number().randomDouble(6, Long.MIN_VALUE, Long.MAX_VALUE);
+                final BigDecimal asBigDecimal = new BigDecimal(randomDouble);
+                return asBigDecimal.floatValue();
+            case DECIMAL:
                 return faker.number().randomDouble(((DecimalDataType) recordField.getDataType()).getScale(), Long.MIN_VALUE, Long.MAX_VALUE);
             case INT:
                 return faker.number().numberBetween(Integer.MIN_VALUE, Integer.MAX_VALUE);
diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/resources/TestGenerateRecord/nested_nullable.avsc b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/resources/TestGenerateRecord/nested_nullable.avsc
index f7a07ad1a0..d52b451c83 100644
--- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/resources/TestGenerateRecord/nested_nullable.avsc
+++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/resources/TestGenerateRecord/nested_nullable.avsc
@@ -18,7 +18,13 @@
           }, {
             "name": "Name",
             "type": ["null", "string"]
-          }]
+          }, {
+              "name": "TestFloat",
+              "type": ["null", "float"]
+          }, {
+              "name": "TestDouble",
+              "type": ["null", "double"]
+            }]
         }]
       }, {
         "name": "EventID",