Skip to content

Commit b2199c1

Browse files
committed
chore(nifi): Replace 2.0.0 with 2.2.0
1 parent 1b70d13 commit b2199c1

File tree

7 files changed

+59
-74
lines changed

7 files changed

+59
-74
lines changed

nifi/stackable/patches/2.0.0/003-patch-cyclonedx-plugin.patch

Lines changed: 0 additions & 29 deletions
This file was deleted.

nifi/stackable/patches/2.0.0/004-CVE-2024-36114-bump-aircompressor-0-27.patch

Lines changed: 0 additions & 37 deletions
This file was deleted.

nifi/stackable/patches/2.0.0/001-NIFI-no-zip-assembly-2.0.0.patch renamed to nifi/stackable/patches/2.2.0/0001-no-zip-assembly.patch

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
From afe4e4583747c2972d2590e9c1bd7de8b48aa300 Mon Sep 17 00:00:00 2001
2+
From: Nick Larsen <[email protected]>
3+
Date: Mon, 17 Feb 2025 17:26:20 +0100
4+
Subject: no zip assembly
5+
6+
---
7+
nifi-assembly/pom.xml | 1 -
8+
1 file changed, 1 deletion(-)
9+
110
diff --git a/nifi-assembly/pom.xml b/nifi-assembly/pom.xml
2-
index e980e507c6..cb19c89367 100644
11+
index c04e1c8650..adcecd6206 100644
312
--- a/nifi-assembly/pom.xml
413
+++ b/nifi-assembly/pom.xml
514
@@ -66,7 +66,6 @@ language governing permissions and limitations under the License. -->

nifi/stackable/patches/2.0.0/002-NIFI-no-host-header-check-2.0.0.patch renamed to nifi/stackable/patches/2.2.0/0002-allow-bypassing-check-for-host-header.patch

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
Subject: [PATCH] Allow bypassing check for host header.
1+
From f6888b73bf6c8b2889f8f7241cdce6714cd6a776 Mon Sep 17 00:00:00 2001
2+
From: Nick Larsen <[email protected]>
3+
Date: Mon, 17 Feb 2025 17:28:46 +0100
4+
Subject: allow bypassing check for host header
5+
26
NiFi has the configuration option 'nifi.web.proxy.host' which controls allowed
37
values for the host header field in any incoming request for the web ui.
48

@@ -20,11 +24,9 @@ hostnames by just setting it to "*" and this will effectively bypass the hostnam
2024
This allows us to keep the default behavior in place for those users where it works and not remove
2125
security features, but also enables users to disable this check if they know what they are doing.
2226
---
23-
Index: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/HostHeaderHandler.java
24-
IDEA additional info:
25-
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
26-
<+>UTF-8
27-
===================================================================
27+
.../org/apache/nifi/web/server/HostHeaderHandler.java | 8 +++++++-
28+
1 file changed, 7 insertions(+), 1 deletion(-)
29+
2830
diff --git a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/HostHeaderHandler.java b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/HostHeaderHandler.java
2931
index 97337d63e2..12ce1d8646 100644
3032
--- a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/HostHeaderHandler.java
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
From fbf66d408aefd995a2ac4a2b213b25a12cb9e96c Mon Sep 17 00:00:00 2001
2+
From: Nick Larsen <[email protected]>
3+
Date: Mon, 17 Feb 2025 17:31:17 +0100
4+
Subject: add cyclonedx plugin
5+
6+
---
7+
pom.xml | 18 ++++++++++++++++++
8+
1 file changed, 18 insertions(+)
9+
10+
diff --git a/pom.xml b/pom.xml
11+
index 7885e6c208..07e03e66cd 100644
12+
--- a/pom.xml
13+
+++ b/pom.xml
14+
@@ -1007,6 +1007,24 @@
15+
</rulesets>
16+
</configuration>
17+
</plugin>
18+
+ <plugin>
19+
+ <groupId>org.cyclonedx</groupId>
20+
+ <artifactId>cyclonedx-maven-plugin</artifactId>
21+
+ <version>2.8.0</version>
22+
+ <configuration>
23+
+ <projectType>application</projectType>
24+
+ <schemaVersion>1.5</schemaVersion>
25+
+ <skipNotDeployed>false</skipNotDeployed>
26+
+ </configuration>
27+
+ <executions>
28+
+ <execution>
29+
+ <phase>package</phase>
30+
+ <goals>
31+
+ <goal>makeBom</goal>
32+
+ </goals>
33+
+ </execution>
34+
+ </executions>
35+
+ </plugin>
36+
</plugins>
37+
</build>
38+
<profiles>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
upstream = "https://github.com/apache/nifi"
2+
base = "b33ffac8aa10992482f7fa54e6cfccc46a5e8e27"

nifi/versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"java-devel": "11",
1111
},
1212
{
13-
"product": "2.0.0",
13+
"product": "2.2.0",
1414
"java-base": "21",
1515
"java-devel": "21",
1616
},

0 commit comments

Comments
 (0)