This is an automated email from the ASF dual-hosted git repository.
martinzink pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 0d27eac24 MINIFICPP-2857 Processors w/o relationships have incomplete
manifest … (#2207)
0d27eac24 is described below
commit 0d27eac24bee26a96d2709add5625426bac3e1b2
Author: Martin Zink <[email protected]>
AuthorDate: Mon Jul 6 12:24:49 2026 +0200
MINIFICPP-2857 Processors w/o relationships have incomplete manifest …
(#2207)
---
.github/references/ubuntu_22_04_clang_arm_manifest.json | 6 ++++++
libminifi/src/core/state/nodes/AgentInformation.cpp | 7 ++++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/.github/references/ubuntu_22_04_clang_arm_manifest.json
b/.github/references/ubuntu_22_04_clang_arm_manifest.json
index 8cabb5440..139f413bf 100644
--- a/.github/references/ubuntu_22_04_clang_arm_manifest.json
+++ b/.github/references/ubuntu_22_04_clang_arm_manifest.json
@@ -4418,6 +4418,9 @@
"defaultValue": "false"
}
},
+ "inputRequirement": "INPUT_ALLOWED",
+ "isSingleThreaded": "false",
+ "supportedRelationships": [],
"typeDescription": "This processor can throw exceptions in
onTrigger and onSchedule calls based on configuration. Only for testing
purposes.",
"supportsDynamicRelationships": "false",
"supportsDynamicProperties": "false",
@@ -6033,6 +6036,9 @@
"type": "org.apache.nifi.minifi.processors.LogAttribute"
},
{
+ "inputRequirement": "INPUT_ALLOWED",
+ "isSingleThreaded": "false",
+ "supportedRelationships": [],
"typeDescription": "This processor logs a message on
destruction. Only for testing purposes.",
"supportsDynamicRelationships": "false",
"supportsDynamicProperties": "false",
diff --git a/libminifi/src/core/state/nodes/AgentInformation.cpp
b/libminifi/src/core/state/nodes/AgentInformation.cpp
index 1c73ee2a4..7a81b7f39 100644
--- a/libminifi/src/core/state/nodes/AgentInformation.cpp
+++ b/libminifi/src/core/state/nodes/AgentInformation.cpp
@@ -75,7 +75,9 @@ std::string allowedTypeArtifactName(const std::string_view
allowed_type, const s
return "minifi-system";
}
-void serializeClassDescription(const std::vector<ClassDescription>&
descriptions, const std::string& name, SerializedResponseNode& response) {
+void serializeClassDescription(const std::vector<ClassDescription>&
descriptions,
+ const std::string& name,
+ SerializedResponseNode& response) {
if (descriptions.empty()) {
return;
}
@@ -142,8 +144,7 @@ void serializeClassDescription(const
std::vector<ClassDescription>& descriptions
desc.children.push_back(props);
}
- // only for processors
- if (!class_description.class_relationships_.empty()) {
+ if (class_description.type_ == ResourceType::Processor) {
desc.children.push_back({.name = "inputRequirement", .value =
class_description.inputRequirement_});
desc.children.push_back({.name = "isSingleThreaded", .value =
class_description.isSingleThreaded_});